wayland: look for "default" cursor as well as "left_ptr"

Some themes are apparently getting rid of "left_ptr" and using the
cursor spec names instead. Check for "default" as well. Fixes #13376.
This commit is contained in:
Dudemanguy 2024-01-30 18:35:00 -06:00
parent 57d6826249
commit adcc6794b5
1 changed files with 5 additions and 2 deletions

View File

@ -1893,9 +1893,12 @@ static int spawn_cursor(struct vo_wayland_state *wl)
return 1;
}
wl->default_cursor = wl_cursor_theme_get_cursor(wl->cursor_theme, "left_ptr");
wl->default_cursor = wl_cursor_theme_get_cursor(wl->cursor_theme, "default");
if (!wl->default_cursor)
wl->default_cursor = wl_cursor_theme_get_cursor(wl->cursor_theme, "left_ptr");
if (!wl->default_cursor) {
MP_ERR(wl, "Unable to load cursor theme!\n");
MP_ERR(wl, "Unable to get default and left_ptr XCursor from theme!\n");
return 1;
}