From 37f42e2df26ff694801e3b6593462f303c83b0fa Mon Sep 17 00:00:00 2001 From: Rose Hudson Date: Fri, 17 Mar 2023 15:58:47 +0000 Subject: backend/wayland: support touch cancel events since wayland doesn't provide a touch id in cancel events, track what points are active so we can cancel all of them timestamp is also not provided - use 0 because no one's paying attention to that anyway Closes #3000 --- include/backend/wayland.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include') diff --git a/include/backend/wayland.h b/include/backend/wayland.h index a1ed4414..75e85879 100644 --- a/include/backend/wayland.h +++ b/include/backend/wayland.h @@ -110,6 +110,11 @@ struct wlr_wl_pointer { struct wl_list link; }; +struct wlr_wl_touch_points { + int32_t ids[64]; + size_t len; +}; + struct wlr_wl_seat { char *name; struct wl_seat *wl_seat; @@ -131,6 +136,7 @@ struct wlr_wl_seat { struct wl_touch *wl_touch; struct wlr_touch wlr_touch; + struct wlr_wl_touch_points touch_points; struct zwp_tablet_seat_v2 *zwp_tablet_seat_v2; struct zwp_tablet_v2 *zwp_tablet_v2; -- cgit v1.2.3