From 1b231b4e57259f2fd67a5abb0be257fee87b1b22 Mon Sep 17 00:00:00 2001 From: Dudemanguy Date: Tue, 25 Mar 2025 17:39:28 -0500 Subject: [PATCH] wayland: accept version 2 of the cursor-shape protocol The version 2 changes only add some enums which makes zero difference to us so we can just allow the newer version. --- video/out/wayland_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/video/out/wayland_common.c b/video/out/wayland_common.c index cd51e214a1..8b699d20fd 100644 --- a/video/out/wayland_common.c +++ b/video/out/wayland_common.c @@ -1998,7 +1998,7 @@ static void registry_handle_add(void *data, struct wl_registry *reg, uint32_t id #if HAVE_WAYLAND_PROTOCOLS_1_32 if (!strcmp(interface, wp_cursor_shape_manager_v1_interface.name) && found++) { - ver = 1; + ver = MPMIN(ver, 2); wl->cursor_shape_manager = wl_registry_bind(reg, id, &wp_cursor_shape_manager_v1_interface, ver); } #endif