aboutsummaryrefslogtreecommitdiff
path: root/include/swaybar/tray
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2019-01-04 11:57:18 +0000
committerFurkan Sahin <furkan-dev@proton.me>2019-01-04 11:57:18 +0000
commit48dd3de4c9bee06ddd310dd8880f6d61ccc8010f (patch)
tree6ce91378ead75a72910744a1e694d33accc6215d /include/swaybar/tray
parentc140b84ffdb4cd86bc02d0f21b1fff73741c2927 (diff)
swaybar: handle SNI signals better
This fixes a crash caused by callbacks not matching the right sender, and frees old values later, before they are re-assigned.
Diffstat (limited to 'include/swaybar/tray')
-rw-r--r--include/swaybar/tray/item.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/swaybar/tray/item.h b/include/swaybar/tray/item.h
index 9bba7951..4238bdb8 100644
--- a/include/swaybar/tray/item.h
+++ b/include/swaybar/tray/item.h
@@ -35,6 +35,10 @@ struct swaybar_sni {
bool item_is_menu;
char *menu;
char *icon_theme_path; // non-standard KDE property
+
+ sd_bus_slot *new_icon_slot;
+ sd_bus_slot *new_attention_icon_slot;
+ sd_bus_slot *new_status_slot;
};
struct swaybar_sni *create_sni(char *id, struct swaybar_tray *tray);