aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/wlr/types/wlr_pointer_constraints_v1.h13
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 {