summaryrefslogtreecommitdiff
path: root/swaybar/tray/watcher.c
diff options
context:
space:
mode:
authorIan Fan <[email protected]>2019-02-16 11:02:15 +0000
committeremersion <[email protected]>2019-02-16 21:49:16 +0100
commitf54077dbca2faf3f0d614377a01a215c82ef075e (patch)
tree159afadf20fef694e827213458a5a5caf4195112 /swaybar/tray/watcher.c
parent26d6360febeb364a9c7e20844ad03c796e4f08c3 (diff)
tray: fix memory leaks
Diffstat (limited to 'swaybar/tray/watcher.c')
-rw-r--r--swaybar/tray/watcher.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/swaybar/tray/watcher.c b/swaybar/tray/watcher.c
index 432837d0..951a0589 100644
--- a/swaybar/tray/watcher.c
+++ b/swaybar/tray/watcher.c
@@ -186,8 +186,8 @@ struct swaybar_watcher *create_watcher(char *protocol, sd_bus *bus) {
goto error;
}
- sd_bus_slot_set_floating(signal_slot, 1);
- sd_bus_slot_set_floating(vtable_slot, 1);
+ sd_bus_slot_set_floating(signal_slot, 0);
+ sd_bus_slot_set_floating(vtable_slot, 0);
watcher->bus = bus;
watcher->hosts = create_list();