aboutsummaryrefslogtreecommitdiffstats
path: root/include/sway/input/cursor.h
diff options
context:
space:
mode:
authorLibravatar Tudor Brindus <me@tbrindus.ca>2020-05-02 19:22:15 -0400
committerLibravatar Simon Ser <contact@emersion.fr>2020-05-21 10:45:08 +0200
commit6f0a0bd3852c6d92f30d43b9a39dc743987584ac (patch)
tree66b836ab37f4cf84957aaab4bdbc200691d3e08e /include/sway/input/cursor.h
parentswaybar: add NULL check when listing workspaces (diff)
downloadsway-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/sway/input/cursor.h')
-rw-r--r--include/sway/input/cursor.h1
1 files changed, 1 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;