diff options
author | 2019-02-15 16:25:28 +0100 | |
---|---|---|
committer | 2019-02-15 16:25:28 +0100 | |
commit | cdbf8e8b2540768cc4c82176f6510d8e6ae8f037 (patch) | |
tree | e98b9ffe575791ab9fb48e52e5339c55bff2005a /swaybar/tray/host.c | |
parent | apply_output_config: dpms on before modeset (diff) | |
parent | tray: use correct parameter to set bus slot to floating (diff) | |
download | sway-cdbf8e8b2540768cc4c82176f6510d8e6ae8f037.tar.gz sway-cdbf8e8b2540768cc4c82176f6510d8e6ae8f037.tar.zst sway-cdbf8e8b2540768cc4c82176f6510d8e6ae8f037.zip |
Merge pull request #3692 from ianyfan/swaybar
Fix crash and memory leak on bar termination
Diffstat (limited to 'swaybar/tray/host.c')
-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, | |||
189 | goto error; | 189 | goto error; |
190 | } | 190 | } |
191 | 191 | ||
192 | sd_bus_slot_set_floating(reg_slot, 1); | 192 | sd_bus_slot_set_floating(reg_slot, 0); |
193 | sd_bus_slot_set_floating(unreg_slot, 1); | 193 | sd_bus_slot_set_floating(unreg_slot, 0); |
194 | sd_bus_slot_set_floating(watcher_slot, 1); | 194 | sd_bus_slot_set_floating(watcher_slot, 0); |
195 | 195 | ||
196 | sway_log(SWAY_DEBUG, "Registered %s", host->service); | 196 | sway_log(SWAY_DEBUG, "Registered %s", host->service); |
197 | return true; | 197 | return true; |