summaryrefslogtreecommitdiffstats
path: root/swaybar/tray/host.c
diff options
context:
space:
mode:
authorLibravatar Ian Fan <ianfan0@gmail.com>2018-12-07 12:40:45 +0000
committerLibravatar Ian Fan <ianfan0@gmail.com>2018-12-31 20:40:18 +0000
commit2fd41fe9c85a866173fc2770ed7669871258bced (patch)
treeb86d174e5bc5827bd4fdedf8e6e6aee6fb8fc929 /swaybar/tray/host.c
parentswaybar: implement mouse events for tray (diff)
downloadsway-2fd41fe9c85a866173fc2770ed7669871258bced.tar.gz
sway-2fd41fe9c85a866173fc2770ed7669871258bced.tar.zst
sway-2fd41fe9c85a866173fc2770ed7669871258bced.zip
swaybar: set bar dirty on SNI event
Diffstat (limited to 'swaybar/tray/host.c')
-rw-r--r--swaybar/tray/host.c2
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 @@
4#include <stdlib.h> 4#include <stdlib.h>
5#include <string.h> 5#include <string.h>
6#include <unistd.h> 6#include <unistd.h>
7#include "swaybar/bar.h"
7#include "swaybar/tray/host.h" 8#include "swaybar/tray/host.h"
8#include "swaybar/tray/item.h" 9#include "swaybar/tray/item.h"
9#include "swaybar/tray/tray.h" 10#include "swaybar/tray/tray.h"
@@ -56,6 +57,7 @@ static int handle_sni_unregistered(sd_bus_message *msg, void *data,
56 wlr_log(WLR_DEBUG, "Unregistering Status Notifier Item '%s'", id); 57 wlr_log(WLR_DEBUG, "Unregistering Status Notifier Item '%s'", id);
57 destroy_sni(tray->items->items[idx]); 58 destroy_sni(tray->items->items[idx]);
58 list_del(tray->items, idx); 59 list_del(tray->items, idx);
60 set_bar_dirty(tray->bar);
59 } 61 }
60 return ret; 62 return ret;
61} 63}