diff options
author | 2019-01-23 09:20:37 -0500 | |
---|---|---|
committer | 2019-01-23 09:20:37 -0500 | |
commit | 1803e7748bbfa8e28050e5aa906fcd7bb95e5ea1 (patch) | |
tree | 37a0c4ec0f20e2b3a39867f297b33db3ecac176d /swaybar/tray | |
parent | swaybar: fix command malloc in workspace command (diff) | |
parent | Fix tray icon updates (diff) | |
download | sway-1803e7748bbfa8e28050e5aa906fcd7bb95e5ea1.tar.gz sway-1803e7748bbfa8e28050e5aa906fcd7bb95e5ea1.tar.zst sway-1803e7748bbfa8e28050e5aa906fcd7bb95e5ea1.zip |
Merge pull request #3502 from lukaslihotzki/master
Fix tray icon updates
Diffstat (limited to 'swaybar/tray')
-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) | |||
200 | struct swaybar_sni *sni = data; | 200 | struct swaybar_sni *sni = data; |
201 | sni_get_property_async(sni, "IconName", "s", &sni->icon_name); | 201 | sni_get_property_async(sni, "IconName", "s", &sni->icon_name); |
202 | sni_get_property_async(sni, "IconPixmap", NULL, &sni->icon_pixmap); | 202 | sni_get_property_async(sni, "IconPixmap", NULL, &sni->icon_pixmap); |
203 | if (!strcmp(sni->interface, "org.kde.StatusNotifierItem")) { | ||
204 | sni_get_property_async(sni, "IconThemePath", "s", &sni->icon_theme_path); | ||
205 | } | ||
203 | return sni_check_msg_sender(sni, msg, "icon"); | 206 | return sni_check_msg_sender(sni, msg, "icon"); |
204 | } | 207 | } |
205 | 208 | ||