From 3061999ec5ab25524e5a4ba5f5518c19bf57ce95 Mon Sep 17 00:00:00 2001 From: John Chadwick Date: Mon, 30 May 2022 12:48:07 -0400 Subject: 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. --- include/sway/input/cursor.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') 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 { 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; -- cgit v1.2.3