summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2019-02-15 15:15:45 +0000
committerFurkan Sahin <furkan-dev@proton.me>2019-02-15 15:15:45 +0000
commite1f4f039e2cce1871cda5dd9476fdc9c61fe8c50 (patch)
treee98b9ffe575791ab9fb48e52e5339c55bff2005a
parent7c5eff89efbee8e4451c71d1dec443e55072c3d1 (diff)
tray: use correct parameter to set bus slot to floating
Counter-intuitively, `sd_bus_slot_set_floating` expects 0 to set it to floating.
-rw-r--r--swaybar/tray/host.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/swaybar/tray/host.c b/swaybar/tray/host.c
index 215e1e72..451b0896 100644
--- a/swaybar/tray/host.c
+++ b/swaybar/tray/host.c
@@ -189,9 +189,9 @@ bool init_host(struct swaybar_host *host, char *protocol,
goto error;
}
- sd_bus_slot_set_floating(reg_slot, 1);
- sd_bus_slot_set_floating(unreg_slot, 1);
- sd_bus_slot_set_floating(watcher_slot, 1);
+ sd_bus_slot_set_floating(reg_slot, 0);
+ sd_bus_slot_set_floating(unreg_slot, 0);
+ sd_bus_slot_set_floating(watcher_slot, 0);
sway_log(SWAY_DEBUG, "Registered %s", host->service);
return true;