diff options
author | nanahi <130121847+na-na-hi@users.noreply.github.com> | 2024-02-02 00:27:51 -0500 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2024-02-04 02:14:11 +0000 |
commit | 27cb193f0e87014fbf5121e34da462b46975e53c (patch) | |
tree | ef5818eff68d5ca6c1017c1c568b3ec4d461a22d | |
parent | e0f9cf61b9cf4552d6231ca2bcf59dabaab05fd1 (diff) | |
download | mpv-27cb193f0e87014fbf5121e34da462b46975e53c.tar.bz2 mpv-27cb193f0e87014fbf5121e34da462b46975e53c.tar.xz |
wayland_common: warn if scrolling will be broken
Since the scroll event handler is moved to wl_pointer_frame, version 5 of
wl_seat is required. Warn that scrolling is broken if the compositor
doesn't support that verison.
-rw-r--r-- | video/out/wayland_common.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/video/out/wayland_common.c b/video/out/wayland_common.c index 39aecbedff..8fad286ffc 100644 --- a/video/out/wayland_common.c +++ b/video/out/wayland_common.c @@ -1420,6 +1420,9 @@ static void registry_handle_add(void *data, struct wl_registry *reg, uint32_t id } if (!strcmp(interface, wl_seat_interface.name) && found++) { + if (ver < 5) + MP_WARN(wl, "Scrolling won't work because the compositor doesn't " + "support version 5 of wl_seat protocol!\n"); #ifdef HAVE_WAYLAND_1_21 ver = MPMIN(ver, 8); /* Cap at 8 in case new events are added later. */ #else |