aboutsummaryrefslogtreecommitdiff
path: root/include/swaybar/tray/item.h
diff options
context:
space:
mode:
authorIan Fan <ianfan0@gmail.com>2019-01-04 11:57:18 +0000
committerIan Fan <ianfan0@gmail.com>2019-01-08 12:18:59 +0000
commitd093c3ac55649e9a30504cfeaff506329ffd6ec7 (patch)
tree6ce91378ead75a72910744a1e694d33accc6215d /include/swaybar/tray/item.h
parentb666fc76a6de9d4eb24ca9a1e458736b1ffee974 (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/item.h')
-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);