mirror of
https://github.com/swaywm/sway.git
synced 2025-10-29 05:40:18 -04:00
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.
This commit is contained in:
parent
1451ee8fd1
commit
0a71aa6e97
2 changed files with 13 additions and 4 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue