mirror of
https://github.com/swaywm/sway.git
synced 2024-12-28 07:56:31 +01:00
Fix tray icon updates
Apparently, IconThemePath needs to be reread on NewIcon signal. This fixes tray icon updates in electron apps with libappindicator-gtk3.
This commit is contained in:
parent
9e6c6ce332
commit
f7ed97e2a7
1 changed files with 3 additions and 0 deletions
|
@ -200,6 +200,9 @@ static int handle_new_icon(sd_bus_message *msg, void *data, sd_bus_error *error)
|
||||||
struct swaybar_sni *sni = data;
|
struct swaybar_sni *sni = data;
|
||||||
sni_get_property_async(sni, "IconName", "s", &sni->icon_name);
|
sni_get_property_async(sni, "IconName", "s", &sni->icon_name);
|
||||||
sni_get_property_async(sni, "IconPixmap", NULL, &sni->icon_pixmap);
|
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");
|
return sni_check_msg_sender(sni, msg, "icon");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue