aboutsummaryrefslogtreecommitdiff
path: root/swaybar/tray/watcher.c
diff options
context:
space:
mode:
authorIan Fan <ianfan0@gmail.com>2019-02-16 11:02:15 +0000
committerDrew DeVault <sir@cmpwn.com>2019-02-18 15:11:48 -0500
commit9ff59b7c6bbd46dcbaf5f516705f349a9138261c (patch)
tree547ca2bae68dc1a87899007d56322425bd0459c5 /swaybar/tray/watcher.c
parent8dbd4b98f7b0c8c1c15fc7045b49a2957b993165 (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();