diff options
author | Lukas Lihotzki <lukas@lihotzki.de> | 2019-01-23 13:08:43 +0100 |
---|---|---|
committer | Lukas Lihotzki <lukas@lihotzki.de> | 2019-01-23 13:08:43 +0100 |
commit | f7ed97e2a7a3bb084dca0c7494b791cbbceb9821 (patch) | |
tree | 37a0c4ec0f20e2b3a39867f297b33db3ecac176d /swaybar | |
parent | 9e6c6ce332a1d2b9e0387298e99bba824e0103a1 (diff) |
Fix tray icon updates
Apparently, IconThemePath needs to be reread on NewIcon signal.
This fixes tray icon updates in electron apps with libappindicator-gtk3.
Diffstat (limited to 'swaybar')
-rw-r--r-- | swaybar/tray/item.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/swaybar/tray/item.c b/swaybar/tray/item.c index a43bbf6f..02e34ed5 100644 --- a/swaybar/tray/item.c +++ b/swaybar/tray/item.c @@ -200,6 +200,9 @@ static int handle_new_icon(sd_bus_message *msg, void *data, sd_bus_error *error) struct swaybar_sni *sni = data; sni_get_property_async(sni, "IconName", "s", &sni->icon_name); sni_get_property_async(sni, "IconPixmap", NULL, &sni->icon_pixmap); + if (!strcmp(sni->interface, "org.kde.StatusNotifierItem")) { + sni_get_property_async(sni, "IconThemePath", "s", &sni->icon_theme_path); + } return sni_check_msg_sender(sni, msg, "icon"); } |