From e0f9cf61b9cf4552d6231ca2bcf59dabaab05fd1 Mon Sep 17 00:00:00 2001 From: nanahi <130121847+na-na-hi@users.noreply.github.com> Date: Thu, 1 Feb 2024 22:14:03 -0500 Subject: wayland_common: add touch listener boilerplate Required if seat version >=6 is used. --- video/out/wayland_common.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'video') diff --git a/video/out/wayland_common.c b/video/out/wayland_common.c index 3e031d1449..39aecbedff 100644 --- a/video/out/wayland_common.c +++ b/video/out/wayland_common.c @@ -436,12 +436,24 @@ static void touch_handle_cancel(void *data, struct wl_touch *wl_touch) { } +static void touch_handle_shape(void *data, struct wl_touch *wl_touch, + int32_t id, wl_fixed_t major, wl_fixed_t minor) +{ +} + +static void touch_handle_orientation(void *data, struct wl_touch *wl_touch, + int32_t id, wl_fixed_t orientation) +{ +} + static const struct wl_touch_listener touch_listener = { touch_handle_down, touch_handle_up, touch_handle_motion, touch_handle_frame, touch_handle_cancel, + touch_handle_shape, + touch_handle_orientation, }; static void keyboard_handle_keymap(void *data, struct wl_keyboard *wl_keyboard, -- cgit v1.2.3