aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLibravatar John Chadwick <john@jchw.io>2022-05-30 12:48:07 -0400
committerLibravatar Tudor Brindus <vulcainus@gmail.com>2023-01-07 23:52:27 -0500
commit3061999ec5ab25524e5a4ba5f5518c19bf57ce95 (patch)
tree21fafffd1a8571a4ab2beef887dee046944b5036 /include
parentwarp_to_constraint_cursor_hint: Handle NULL view (diff)
downloadsway-3061999ec5ab25524e5a4ba5f5518c19bf57ce95.tar.gz
sway-3061999ec5ab25524e5a4ba5f5518c19bf57ce95.tar.zst
sway-3061999ec5ab25524e5a4ba5f5518c19bf57ce95.zip
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.
Diffstat (limited to 'include')
-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 8a2898dd..828ac370 100644
--- a/include/sway/input/cursor.h
+++ b/include/sway/input/cursor.h
@@ -64,6 +64,7 @@ struct sway_cursor {
64 struct wl_listener tool_proximity; 64 struct wl_listener tool_proximity;
65 struct wl_listener tool_button; 65 struct wl_listener tool_button;
66 bool simulating_pointer_from_tool_tip; 66 bool simulating_pointer_from_tool_tip;
67 bool simulating_pointer_from_tool_button;
67 uint32_t tool_buttons; 68 uint32_t tool_buttons;
68 69
69 struct wl_listener request_set_cursor; 70 struct wl_listener request_set_cursor;