aboutsummaryrefslogtreecommitdiff
path: root/swaybar/tray/tray.c
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2019-01-09 09:58:09 +0100
committerGitHub <noreply@github.com>2019-01-09 09:58:09 +0100
commitcfdb614e84ff6559897057c501b8ae530a699543 (patch)
tree71a71283cd91bef017673e23b3a79a9520e63dd8 /swaybar/tray/tray.c
parent51bc466e2bc82a937fb4926849d734a069447a4a (diff)
parentf87628e2abd98348a218de581ca93271a99d1591 (diff)
Merge pull request #3372 from ianyfan/tray
swaybar: handle SNI signals better
Diffstat (limited to 'swaybar/tray/tray.c')
-rw-r--r--swaybar/tray/tray.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/swaybar/tray/tray.c b/swaybar/tray/tray.c
index acc300af..0c3517cb 100644
--- a/swaybar/tray/tray.c
+++ b/swaybar/tray/tray.c
@@ -79,7 +79,7 @@ void destroy_tray(struct swaybar_tray *tray) {
finish_host(&tray->host_xdg);
finish_host(&tray->host_kde);
for (int i = 0; i < tray->items->length; ++i) {
- destroy_sni(tray->items->items[0]);
+ destroy_sni(tray->items->items[i]);
}
list_free(tray->items);
destroy_watcher(tray->watcher_xdg);