aboutsummaryrefslogtreecommitdiff
path: root/dwlb.c
diff options
context:
space:
mode:
authorkolunmi <kolunmi@tutanota.com>2023-02-15 19:09:41 -0700
committerkolunmi <kolunmi@tutanota.com>2023-02-15 19:09:41 -0700
commit2ba4b9af07106cfc539c01ea596bb350aa8b4f9b (patch)
treed11001e6b451b0667a6ccca72ff3df9285cf47e5 /dwlb.c
parent26603abf135222a35962e8d681106744ced38f17 (diff)
downloaddwlb-2ba4b9af07106cfc539c01ea596bb350aa8b4f9b.tar.gz
fix some stylistic inconsistencies
Diffstat (limited to 'dwlb.c')
-rw-r--r--dwlb.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/dwlb.c b/dwlb.c
index ca72193..3c1bcf0 100644
--- a/dwlb.c
+++ b/dwlb.c
@@ -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);
}
}