mirror of
https://github.com/swaywm/sway.git
synced 2025-11-22 06:59:48 -05:00
Improve tablet tool button handling.
This change allows the tablet tool button to be used for floating mod resize. In addition, it attempts to ensure that tablet tool events are consistent such that tablet v2 events and pointer events will never be interleaved, and such that the tool buttons count will never fall out of sync and cause tool button emulation to break. Some of this logic is similar to what is done for tablet tool tip, but not quite identical, because of the complication that we have to deal with multiple inputs that can overlap eachother. Fixes #7036.
This commit is contained in:
parent
88c17ece3b
commit
3061999ec5
2 changed files with 48 additions and 7 deletions
|
|
@ -64,6 +64,7 @@ struct sway_cursor {
|
|||
struct wl_listener tool_proximity;
|
||||
struct wl_listener tool_button;
|
||||
bool simulating_pointer_from_tool_tip;
|
||||
bool simulating_pointer_from_tool_button;
|
||||
uint32_t tool_buttons;
|
||||
|
||||
struct wl_listener request_set_cursor;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue