aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2020-05-02 19:22:15 -0400
committerFurkan Sahin <furkan-dev@proton.me>2020-05-02 19:22:15 -0400
commit263827cb4b6ef77bb099b4b2ac449e60091a84ff (patch)
tree66b836ab37f4cf84957aaab4bdbc200691d3e08e /include
parent82de993c32f6ad6097f8541d85de71d362921ed6 (diff)
input/pointer: only warp cursor when the confine region has changed
Refs #5268.
Diffstat (limited to 'include')
-rw-r--r--include/sway/input/cursor.h1
-rw-r--r--include/sway/input/seat.h1
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;
};