From 4c29a53386d77251fa108294a1353e9567301d4f Mon Sep 17 00:00:00 2001 From: Andri Yngvason Date: Fri, 3 Jan 2020 14:37:30 +0000 Subject: swaynag: Add multi-seat support This also adds cleanup for all seat resources --- include/swaynag/swaynag.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'include/swaynag') 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; -- cgit v1.2.3