diff options
author | Tudor Brindus <me@tbrindus.ca> | 2020-05-12 16:34:32 -0400 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2020-05-13 20:38:12 +0200 |
commit | 8b18d389b3369a2797021ea6ede3b35e90edfb49 (patch) | |
tree | a02519d5c7971589043d7d642b0859949ee8c87a /include/wlr | |
parent | 51bbf31742a9317f20148b0eeb886b7cad23b81b (diff) |
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.
Diffstat (limited to 'include/wlr')
-rw-r--r-- | include/wlr/types/wlr_pointer_constraints_v1.h | 5 |
1 files changed, 5 insertions, 0 deletions
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; |