aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2019-11-12 15:32:08 +0100
committerDrew DeVault <sir@cmpwn.com>2019-11-13 10:15:19 -0500
commit1e568d84dfd40e7a106a2afc74cdd7d39ba9a7dd (patch)
treea37aaf4a2ca74ceda6e08f6c0c2df304782ac740 /include
parent4c9423278a66ddb9cb03cee33473b1332150230f (diff)
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.
Diffstat (limited to 'include')
-rw-r--r--include/backend/wayland.h2
1 files changed, 2 insertions, 0 deletions
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;