summaryrefslogtreecommitdiff
path: root/include/sway/input/cursor.h
diff options
context:
space:
mode:
authorTudor Brindus <[email protected]>2020-05-02 19:22:15 -0400
committerSimon Ser <[email protected]>2020-05-21 10:45:08 +0200
commit6f0a0bd3852c6d92f30d43b9a39dc743987584ac (patch)
tree66b836ab37f4cf84957aaab4bdbc200691d3e08e /include/sway/input/cursor.h
parent45e4e9217238fe658b99634d284768439969ad79 (diff)
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 {
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;