diff options
author | Tudor Brindus <me@tbrindus.ca> | 2020-05-02 19:22:15 -0400 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2020-05-21 10:45:08 +0200 |
commit | 6f0a0bd3852c6d92f30d43b9a39dc743987584ac (patch) | |
tree | 66b836ab37f4cf84957aaab4bdbc200691d3e08e /include/sway | |
parent | 45e4e9217238fe658b99634d284768439969ad79 (diff) |
input/pointer: only warp cursor when the confine region has changed
Refs #5268.
Diffstat (limited to 'include/sway')
-rw-r--r-- | include/sway/input/cursor.h | 1 | ||||
-rw-r--r-- | include/sway/input/seat.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/include/sway/input/cursor.h b/include/sway/input/cursor.h index 8f9f84d0..ddece700 100644 --- a/include/sway/input/cursor.h +++ b/include/sway/input/cursor.h @@ -32,6 +32,7 @@ struct sway_cursor { struct wlr_pointer_constraint_v1 *active_constraint; pixman_region32_t confine; // invalid if active_constraint == NULL + bool active_confine_requires_warp; struct wlr_pointer_gestures_v1 *pointer_gestures; struct wl_listener pinch_begin; diff --git a/include/sway/input/seat.h b/include/sway/input/seat.h index 6a46fa91..66f8f7e4 100644 --- a/include/sway/input/seat.h +++ b/include/sway/input/seat.h @@ -111,6 +111,7 @@ struct sway_seat { struct sway_pointer_constraint { struct wlr_pointer_constraint_v1 *constraint; + struct wl_listener set_region; struct wl_listener destroy; }; |