From 8b18d389b3369a2797021ea6ede3b35e90edfb49 Mon Sep 17 00:00:00 2001 From: Tudor Brindus Date: Tue, 12 May 2020 16:34:32 -0400 Subject: input/pointer: notify compositor when constraint region changes This allows a compositor to know when warping back into the region is appropriate. Refs swaywm/sway#5268. --- include/wlr/types/wlr_pointer_constraints_v1.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include') diff --git a/include/wlr/types/wlr_pointer_constraints_v1.h b/include/wlr/types/wlr_pointer_constraints_v1.h index c13432e9..0c49e3bf 100644 --- a/include/wlr/types/wlr_pointer_constraints_v1.h +++ b/include/wlr/types/wlr_pointer_constraints_v1.h @@ -57,6 +57,11 @@ struct wlr_pointer_constraint_v1 { struct wl_list link; // wlr_pointer_constraints_v1::constraints struct { + /** + * Called when a pointer constraint's region is updated, + * post-surface-commit. + */ + struct wl_signal set_region; struct wl_signal destroy; } events; -- cgit v1.2.3