From 1e568d84dfd40e7a106a2afc74cdd7d39ba9a7dd Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Tue, 12 Nov 2019 15:32:08 +0100 Subject: backend/wayland: add support for relative-pointer-unstable-v1 We just send relative motion events alongside absolute motion events. Compositors can figure out how absolute and relative events are related (e.g. whether they have been triggered by the same logical event) with the frame event. --- include/backend/wayland.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/backend/wayland.h b/include/backend/wayland.h index 886aea9f..f2cf55ed 100644 --- a/include/backend/wayland.h +++ b/include/backend/wayland.h @@ -36,6 +36,7 @@ struct wlr_wl_backend { struct zxdg_decoration_manager_v1 *zxdg_decoration_manager_v1; struct zwp_pointer_gestures_v1 *zwp_pointer_gestures_v1; struct zwp_linux_dmabuf_v1 *zwp_linux_dmabuf_v1; + struct zwp_relative_pointer_manager_v1 *zwp_relative_pointer_manager_v1; struct wl_seat *seat; struct wl_pointer *pointer; struct wl_keyboard *keyboard; @@ -86,6 +87,7 @@ struct wlr_wl_pointer { struct wl_pointer *wl_pointer; struct zwp_pointer_gesture_swipe_v1 *gesture_swipe; struct zwp_pointer_gesture_pinch_v1 *gesture_pinch; + struct zwp_relative_pointer_v1 *relative_pointer; enum wlr_axis_source axis_source; int32_t axis_discrete; struct wlr_wl_output *output; -- cgit v1.2.3