diff options
author | Ian Fan <ianfan0@gmail.com> | 2018-12-07 12:40:45 +0000 |
---|---|---|
committer | Ian Fan <ianfan0@gmail.com> | 2018-12-31 20:40:18 +0000 |
commit | 2fd41fe9c85a866173fc2770ed7669871258bced (patch) | |
tree | b86d174e5bc5827bd4fdedf8e6e6aee6fb8fc929 /swaybar/tray/host.c | |
parent | 6becde024680503100c94702ed7d1fbf4d01576e (diff) |
swaybar: set bar dirty on SNI event
Diffstat (limited to 'swaybar/tray/host.c')
-rw-r--r-- | swaybar/tray/host.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/swaybar/tray/host.c b/swaybar/tray/host.c index 8ab896d4..c5756f17 100644 --- a/swaybar/tray/host.c +++ b/swaybar/tray/host.c @@ -4,6 +4,7 @@ #include <stdlib.h> #include <string.h> #include <unistd.h> +#include "swaybar/bar.h" #include "swaybar/tray/host.h" #include "swaybar/tray/item.h" #include "swaybar/tray/tray.h" @@ -56,6 +57,7 @@ static int handle_sni_unregistered(sd_bus_message *msg, void *data, wlr_log(WLR_DEBUG, "Unregistering Status Notifier Item '%s'", id); destroy_sni(tray->items->items[idx]); list_del(tray->items, idx); + set_bar_dirty(tray->bar); } return ret; } |