mirror of
https://github.com/mpv-player/mpv.git
synced 2026-10-28 14:29:25 +08:00
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.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user