diff options
author | Brian Ashworth <bosrsf04@gmail.com> | 2019-04-23 23:40:00 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2019-04-24 07:16:37 -0600 |
commit | dc7a3930a7ffd4435c9215c7cce0afa37d06c91f (patch) | |
tree | 1b5f0bbbd832c7dc6b4407cd16dbc4ece26a666b /include/swaybar/input.h | |
parent | swaybar: hide mode visibility improvements (diff) | |
download | sway-dc7a3930a7ffd4435c9215c7cce0afa37d06c91f.tar.gz sway-dc7a3930a7ffd4435c9215c7cce0afa37d06c91f.tar.zst sway-dc7a3930a7ffd4435c9215c7cce0afa37d06c91f.zip |
swaybar: add multiseat support
This just adds multiseat support to swaybar
Diffstat (limited to 'include/swaybar/input.h')
-rw-r--r-- | include/swaybar/input.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/include/swaybar/input.h b/include/swaybar/input.h index 88e5abc5..2d38f7a7 100644 --- a/include/swaybar/input.h +++ b/include/swaybar/input.h | |||
@@ -50,12 +50,23 @@ struct swaybar_hotspot { | |||
50 | void *data; | 50 | void *data; |
51 | }; | 51 | }; |
52 | 52 | ||
53 | struct swaybar_seat { | ||
54 | struct swaybar *bar; | ||
55 | uint32_t wl_name; | ||
56 | struct wl_seat *wl_seat; | ||
57 | struct swaybar_pointer pointer; | ||
58 | struct swaybar_touch touch; | ||
59 | struct wl_list link; // swaybar_seat:link | ||
60 | }; | ||
61 | |||
53 | extern const struct wl_seat_listener seat_listener; | 62 | extern const struct wl_seat_listener seat_listener; |
54 | 63 | ||
55 | void update_cursor(struct swaybar *bar); | 64 | void update_cursor(struct swaybar_seat *seat); |
56 | 65 | ||
57 | uint32_t event_to_x11_button(uint32_t event); | 66 | uint32_t event_to_x11_button(uint32_t event); |
58 | 67 | ||
59 | void free_hotspots(struct wl_list *list); | 68 | void free_hotspots(struct wl_list *list); |
60 | 69 | ||
70 | void swaybar_seat_free(struct swaybar_seat *seat); | ||
71 | |||
61 | #endif | 72 | #endif |