aboutsummaryrefslogtreecommitdiff
path: root/swaybar/tray/tray.c
diff options
context:
space:
mode:
authorCalvin Lee <cyrus296@gmail.com>2017-06-08 05:36:17 -0700
committerCalvin Lee <cyrus296@gmail.com>2017-06-08 08:24:35 -0700
commit0a71aa6e97a96ffbd34fe18ec42b27d8fe5952e8 (patch)
treee10916e6797debf9cbd4c2599259ea56646fd302 /swaybar/tray/tray.c
parent1451ee8fd13dd35227d11e393c80871c70ad90f0 (diff)
Fix Catching NewIcon Signal
The unique name was not copied out of the wire marshalled DBus message data so `sni_uniq_cmp` would always match against junk data.
Diffstat (limited to 'swaybar/tray/tray.c')
-rw-r--r--swaybar/tray/tray.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/swaybar/tray/tray.c b/swaybar/tray/tray.c
index ca8b1341..b2fa647e 100644
--- a/swaybar/tray/tray.c
+++ b/swaybar/tray/tray.c
@@ -179,6 +179,7 @@ static DBusHandlerResult signal_handler(DBusConnection *connection,
name = dbus_message_get_sender(message);
if ((index = list_seq_find(tray->items, sni_uniq_cmp, name)) != -1) {
item = tray->items->items[index];
+ sway_log(L_INFO, "NewIcon signal from item %s", item->name);
get_icon(item);
}