mirror of https://github.com/mpv-player/mpv
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:
parent
57d6826249
commit
adcc6794b5
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue