diff options
author | nanahi <130121847+na-na-hi@users.noreply.github.com> | 2024-02-01 22:14:03 -0500 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2024-02-04 02:14:11 +0000 |
commit | e0f9cf61b9cf4552d6231ca2bcf59dabaab05fd1 (patch) | |
tree | a49123b014d8810e1e19a235b771ba3d8d8547f4 | |
parent | b3edb46fd99ec8598c2595d5fe44bb686f613ac4 (diff) | |
download | mpv-e0f9cf61b9cf4552d6231ca2bcf59dabaab05fd1.tar.bz2 mpv-e0f9cf61b9cf4552d6231ca2bcf59dabaab05fd1.tar.xz |
wayland_common: add touch listener boilerplate
Required if seat version >=6 is used.
-rw-r--r-- | video/out/wayland_common.c | 12 |
1 files changed, 12 insertions, 0 deletions
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, |