diff options
author | Andri Yngvason <andri@yngvason.is> | 2020-01-03 14:37:30 +0000 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2020-01-05 19:57:05 +0100 |
commit | 4c29a53386d77251fa108294a1353e9567301d4f (patch) | |
tree | 986c6de0e26b9b63ec0d8e2ca009d5e495f7e609 /include/swaynag | |
parent | b758b43085ab33a41c8cd2af33c539e1825e2990 (diff) |
swaynag: Add multi-seat support
This also adds cleanup for all seat resources
Diffstat (limited to 'include/swaynag')
-rw-r--r-- | include/swaynag/swaynag.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/include/swaynag/swaynag.h b/include/swaynag/swaynag.h index 0fd1eb50..496e883a 100644 --- a/include/swaynag/swaynag.h +++ b/include/swaynag/swaynag.h @@ -27,6 +27,14 @@ struct swaynag_pointer { int y; }; +struct swaynag_seat { + struct wl_seat *wl_seat; + uint32_t wl_name; + struct swaynag *swaynag; + struct swaynag_pointer pointer; + struct wl_list link; +}; + struct swaynag_output { char *name; struct wl_output *wl_output; @@ -72,9 +80,9 @@ struct swaynag { struct wl_compositor *compositor; struct wl_seat *seat; struct wl_shm *shm; - struct swaynag_pointer pointer; struct zxdg_output_manager_v1 *xdg_output_manager; struct wl_list outputs; // swaynag_output::link + struct wl_list seats; // swaynag_seat::link struct swaynag_output *output; struct zwlr_layer_shell_v1 *layer_shell; struct zwlr_layer_surface_v1 *layer_surface; |