Skip to content

Commit 1b231b4

Browse files
committed
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.
1 parent 6ec0d06 commit 1b231b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

video/out/wayland_common.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1998,7 +1998,7 @@ static void registry_handle_add(void *data, struct wl_registry *reg, uint32_t id
19981998

19991999
#if HAVE_WAYLAND_PROTOCOLS_1_32
20002000
if (!strcmp(interface, wp_cursor_shape_manager_v1_interface.name) && found++) {
2001-
ver = 1;
2001+
ver = MPMIN(ver, 2);
20022002
wl->cursor_shape_manager = wl_registry_bind(reg, id, &wp_cursor_shape_manager_v1_interface, ver);
20032003
}
20042004
#endif

0 commit comments

Comments
 (0)