input/pointer: only warp cursor when the confine region has changed

Refs #5268.
This commit is contained in:
Tudor Brindus 2020-05-02 19:22:15 -04:00 committed by Simon Ser
parent 45e4e92172
commit 6f0a0bd385
3 changed files with 18 additions and 1 deletions

View file

@ -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;

View file

@ -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;
};