diff options
author | Rose Hudson <rose@krx.sh> | 2023-03-17 15:58:47 +0000 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2023-03-24 11:47:08 +0000 |
commit | 37f42e2df26ff694801e3b6593462f303c83b0fa (patch) | |
tree | 5867abecf59f913ce7a43dd2d0d86dedc19cacbd /include/backend | |
parent | 1d64e12391a638201c679e71d4e22bb45e5faa8e (diff) |
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
Diffstat (limited to 'include/backend')
-rw-r--r-- | include/backend/wayland.h | 6 |
1 files changed, 6 insertions, 0 deletions
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; |