diff options
| author | kolunmi <kolunmi@tutanota.com> | 2023-02-15 19:09:41 -0700 |
|---|---|---|
| committer | kolunmi <kolunmi@tutanota.com> | 2023-02-15 19:09:41 -0700 |
| commit | 2ba4b9af07106cfc539c01ea596bb350aa8b4f9b (patch) | |
| tree | d11001e6b451b0667a6ccca72ff3df9285cf47e5 /dwlb.c | |
| parent | 26603abf135222a35962e8d681106744ced38f17 (diff) | |
| download | dwlb-2ba4b9af07106cfc539c01ea596bb350aa8b4f9b.tar.gz | |
fix some stylistic inconsistencies
Diffstat (limited to 'dwlb.c')
| -rw-r--r-- | dwlb.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -595,11 +595,11 @@ static void handle_global(void *data, struct wl_registry *registry, uint32_t name, const char *interface, uint32_t version) { - if (strcmp(interface, wl_compositor_interface.name) == 0) { + if (!strcmp(interface, wl_compositor_interface.name)) { compositor = wl_registry_bind(registry, name, &wl_compositor_interface, 4); - } else if (strcmp(interface, wl_shm_interface.name) == 0) { + } else if (!strcmp(interface, wl_shm_interface.name)) { shm = wl_registry_bind(registry, name, &wl_shm_interface, 1); - } else if (strcmp(interface, wl_output_interface.name) == 0) { + } else if (!strcmp(interface, wl_output_interface.name)) { Bar *b = malloc(sizeof(Bar)); if (!b) CLEANUP_EDIE("malloc"); @@ -609,9 +609,9 @@ handle_global(void *data, struct wl_registry *registry, DL_APPEND(bars, b); if (ready) setup_bar(b); - } else if (strcmp(interface, zwlr_layer_shell_v1_interface.name) == 0) { + } else if (!strcmp(interface, zwlr_layer_shell_v1_interface.name)) { layer_shell = wl_registry_bind(registry, name, &zwlr_layer_shell_v1_interface, 1); - } else if (strcmp(interface, zxdg_output_manager_v1_interface.name) == 0) { + } else if (!strcmp(interface, zxdg_output_manager_v1_interface.name)) { output_manager = wl_registry_bind(registry, name, &zxdg_output_manager_v1_interface, 2); } } |