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 | |
parent | swaybar: add NULL check when listing workspaces (diff) | |
download | sway-6f0a0bd3852c6d92f30d43b9a39dc743987584ac.tar.gz sway-6f0a0bd3852c6d92f30d43b9a39dc743987584ac.tar.zst sway-6f0a0bd3852c6d92f30d43b9a39dc743987584ac.zip |
input/pointer: only warp cursor when the confine region has changed
Refs #5268.
Diffstat (limited to 'include')
-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 { | |||
32 | 32 | ||
33 | struct wlr_pointer_constraint_v1 *active_constraint; | 33 | struct wlr_pointer_constraint_v1 *active_constraint; |
34 | pixman_region32_t confine; // invalid if active_constraint == NULL | 34 | pixman_region32_t confine; // invalid if active_constraint == NULL |
35 | bool active_confine_requires_warp; | ||
35 | 36 | ||
36 | struct wlr_pointer_gestures_v1 *pointer_gestures; | 37 | struct wlr_pointer_gestures_v1 *pointer_gestures; |
37 | struct wl_listener pinch_begin; | 38 | 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 { | |||
111 | struct sway_pointer_constraint { | 111 | struct sway_pointer_constraint { |
112 | struct wlr_pointer_constraint_v1 *constraint; | 112 | struct wlr_pointer_constraint_v1 *constraint; |
113 | 113 | ||
114 | struct wl_listener set_region; | ||
114 | struct wl_listener destroy; | 115 | struct wl_listener destroy; |
115 | }; | 116 | }; |
116 | 117 | ||