From adcc6794b5d984f41ec429ef33e702fecde9b4f7 Mon Sep 17 00:00:00 2001 From: Dudemanguy Date: Tue, 30 Jan 2024 18:35:00 -0600 Subject: [PATCH] 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. --- video/out/wayland_common.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/video/out/wayland_common.c b/video/out/wayland_common.c index 2afdd2aa5f..869e4e4b04 100644 --- a/video/out/wayland_common.c +++ b/video/out/wayland_common.c @@ -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; }