summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDudemanguy <random342@airmail.cc>2024-01-30 18:35:00 -0600
committerDudemanguy <random342@airmail.cc>2024-02-01 15:26:46 +0000
commitadcc6794b5d984f41ec429ef33e702fecde9b4f7 (patch)
treead38e18ce2b379deb7e822e49a87530af9f3da3c
parent57d6826249dee3f9ea26937fb58ba2b8e2d3eae8 (diff)
downloadmpv-adcc6794b5d984f41ec429ef33e702fecde9b4f7.tar.bz2
mpv-adcc6794b5d984f41ec429ef33e702fecde9b4f7.tar.xz
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.
-rw-r--r--video/out/wayland_common.c7
1 files 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;
}