diff options
author | Drew DeVault <sir@cmpwn.com> | 2019-02-15 16:25:28 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-15 16:25:28 +0100 |
commit | cdbf8e8b2540768cc4c82176f6510d8e6ae8f037 (patch) | |
tree | e98b9ffe575791ab9fb48e52e5339c55bff2005a /swaybar/tray | |
parent | 96de2b539c00992003664d0de225cc28c2fb9e54 (diff) | |
parent | d3c527220a445c1f88b892c0e77e801d326541b7 (diff) | |
download | sway-cdbf8e8b2540768cc4c82176f6510d8e6ae8f037.tar.xz |
Merge pull request #3692 from ianyfan/swaybar
Fix crash and memory leak on bar termination
Diffstat (limited to 'swaybar/tray')
-rw-r--r-- | swaybar/tray/host.c | 6 |
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; |