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.
This commit is contained in:
Tudor Brindus 2020-05-12 16:34:32 -04:00 committed by Simon Ser
parent 51bbf31742
commit 8b18d389b3
2 changed files with 11 additions and 0 deletions

View file

@ -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;