Merge pull request #3502 from lukaslihotzki/master

Fix tray icon updates
This commit is contained in:
Drew DeVault 2019-01-23 09:20:37 -05:00 committed by GitHub
commit 1803e7748b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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");
}