diff options
author | Simon Ser <contact@emersion.fr> | 2023-12-08 13:58:44 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2023-12-25 11:47:15 +0100 |
commit | 90e12fb97878b2e5879b100b31bfa236c2892a14 (patch) | |
tree | 6130e2ed75e715c4696c6f25a7890f656dd68b47 /include/wlr | |
parent | a6122c3ec58b9f03fdf40be33d55bcb203c496ac (diff) |
pointer-constraints-v1: use wlr_surface_synced
Diffstat (limited to 'include/wlr')
-rw-r--r-- | include/wlr/types/wlr_pointer_constraints_v1.h | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/include/wlr/types/wlr_pointer_constraints_v1.h b/include/wlr/types/wlr_pointer_constraints_v1.h index 1ff10f9d..2b4722f7 100644 --- a/include/wlr/types/wlr_pointer_constraints_v1.h +++ b/include/wlr/types/wlr_pointer_constraints_v1.h @@ -12,6 +12,7 @@ #include <stdint.h> #include <wayland-server-core.h> #include <pixman.h> +#include <wlr/types/wlr_compositor.h> #include <wlr/types/wlr_seat.h> #include "pointer-constraints-unstable-v1-protocol.h" @@ -50,10 +51,6 @@ struct wlr_pointer_constraint_v1 { struct wlr_pointer_constraint_v1_state current, pending; - struct wl_listener surface_commit; - struct wl_listener surface_destroy; - struct wl_listener seat_destroy; - struct wl_list link; // wlr_pointer_constraints_v1.constraints struct { @@ -66,6 +63,14 @@ struct wlr_pointer_constraint_v1 { } events; void *data; + + // private state + + struct wl_listener surface_commit; + struct wl_listener surface_destroy; + struct wl_listener seat_destroy; + + struct wlr_surface_synced synced; }; struct wlr_pointer_constraints_v1 { |