mirror of
https://github.com/swaywm/sway.git
synced 2025-11-17 06:59:48 -05:00
input/pointer: only warp cursor when the confine region has changed
Refs #5268.
This commit is contained in:
parent
45e4e92172
commit
6f0a0bd385
3 changed files with 18 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue