diff options
author | 2019-01-09 09:58:09 +0100 | |
---|---|---|
committer | 2019-01-09 09:58:09 +0100 | |
commit | cfdb614e84ff6559897057c501b8ae530a699543 (patch) | |
tree | 71a71283cd91bef017673e23b3a79a9520e63dd8 /swaybar/tray/host.c | |
parent | Merge pull request #3389 from RedSoxFan/swap-context-seat (diff) | |
parent | swaybar: improve tray logging (diff) | |
download | sway-cfdb614e84ff6559897057c501b8ae530a699543.tar.gz sway-cfdb614e84ff6559897057c501b8ae530a699543.tar.zst sway-cfdb614e84ff6559897057c501b8ae530a699543.zip |
Merge pull request #3372 from ianyfan/tray
swaybar: handle SNI signals better
Diffstat (limited to 'swaybar/tray/host.c')
-rw-r--r-- | swaybar/tray/host.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/swaybar/tray/host.c b/swaybar/tray/host.c index 30339fec..cc8dd188 100644 --- a/swaybar/tray/host.c +++ b/swaybar/tray/host.c | |||
@@ -21,7 +21,7 @@ static int cmp_sni_id(const void *item, const void *cmp_to) { | |||
21 | static void add_sni(struct swaybar_tray *tray, char *id) { | 21 | static void add_sni(struct swaybar_tray *tray, char *id) { |
22 | int idx = list_seq_find(tray->items, cmp_sni_id, id); | 22 | int idx = list_seq_find(tray->items, cmp_sni_id, id); |
23 | if (idx == -1) { | 23 | if (idx == -1) { |
24 | wlr_log(WLR_DEBUG, "Registering Status Notifier Item '%s'", id); | 24 | wlr_log(WLR_INFO, "Registering Status Notifier Item '%s'", id); |
25 | struct swaybar_sni *sni = create_sni(id, tray); | 25 | struct swaybar_sni *sni = create_sni(id, tray); |
26 | if (sni) { | 26 | if (sni) { |
27 | list_add(tray->items, sni); | 27 | list_add(tray->items, sni); |
@@ -54,7 +54,7 @@ static int handle_sni_unregistered(sd_bus_message *msg, void *data, | |||
54 | struct swaybar_tray *tray = data; | 54 | struct swaybar_tray *tray = data; |
55 | int idx = list_seq_find(tray->items, cmp_sni_id, id); | 55 | int idx = list_seq_find(tray->items, cmp_sni_id, id); |
56 | if (idx != -1) { | 56 | if (idx != -1) { |
57 | wlr_log(WLR_DEBUG, "Unregistering Status Notifier Item '%s'", id); | 57 | wlr_log(WLR_INFO, "Unregistering Status Notifier Item '%s'", id); |
58 | destroy_sni(tray->items->items[idx]); | 58 | destroy_sni(tray->items->items[idx]); |
59 | list_del(tray->items, idx); | 59 | list_del(tray->items, idx); |
60 | set_bar_dirty(tray->bar); | 60 | set_bar_dirty(tray->bar); |