diff options
Diffstat (limited to 'include/swaybar/tray')
-rw-r--r-- | include/swaybar/tray/tray.h | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/include/swaybar/tray/tray.h b/include/swaybar/tray/tray.h index 7d371008..b718e555 100644 --- a/include/swaybar/tray/tray.h +++ b/include/swaybar/tray/tray.h | |||
@@ -5,6 +5,7 @@ | |||
5 | #include <stdbool.h> | 5 | #include <stdbool.h> |
6 | #include "swaybar/tray/dbus.h" | 6 | #include "swaybar/tray/dbus.h" |
7 | #include "swaybar/tray/sni.h" | 7 | #include "swaybar/tray/sni.h" |
8 | #include "swaybar/bar.h" | ||
8 | #include "list.h" | 9 | #include "list.h" |
9 | 10 | ||
10 | extern struct tray *tray; | 11 | extern struct tray *tray; |
@@ -14,13 +15,18 @@ struct tray { | |||
14 | }; | 15 | }; |
15 | 16 | ||
16 | /** | 17 | /** |
17 | * Initializes the tray host with D-Bus | 18 | * Processes a mouse event on the bar |
18 | */ | 19 | */ |
19 | int init_tray(); | 20 | void tray_mouse_event(struct output *output, int x, int y, |
21 | uint32_t button, uint32_t state); | ||
22 | |||
23 | uint32_t tray_render(struct output *output, struct config *config); | ||
24 | |||
25 | void tray_upkeep(struct bar *bar); | ||
20 | 26 | ||
21 | /** | 27 | /** |
22 | * Returns an item if `x` and `y` collide with it and NULL otherwise | 28 | * Initializes the tray with D-Bus |
23 | */ | 29 | */ |
24 | struct StatusNotifierItem *collides_with_sni(int x, int y); | 30 | void init_tray(); |
25 | 31 | ||
26 | #endif /* _SWAYBAR_TRAY_H */ | 32 | #endif /* _SWAYBAR_TRAY_H */ |