From 807c99fca61cec0d36e9a471b87cf523e45278eb Mon Sep 17 00:00:00 2001 From: Daniel van Vugt Date: Tue, 23 Apr 2024 17:34:57 +0800 Subject: [PATCH] x11: Add another fallback to legacy X11 cursor names For X11 apps that don't specify their own. Closes: https://gitlab.gnome.org/GNOME/mutter/-/issues/3403 Part-of: --- src/x11/meta-x11-display.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/x11/meta-x11-display.c b/src/x11/meta-x11-display.c index 197c6fde9..c1e749181 100644 --- a/src/x11/meta-x11-display.c +++ b/src/x11/meta-x11-display.c @@ -1674,6 +1674,11 @@ meta_x11_display_reload_cursor (MetaX11Display *x11_display) /* Set a cursor for X11 applications that don't specify their own */ xcursor = XcursorLibraryLoadCursor (x11_display->xdisplay, meta_cursor_get_name (META_CURSOR_DEFAULT)); + if (!xcursor) + { + xcursor = XcursorLibraryLoadCursor (x11_display->xdisplay, + meta_cursor_get_legacy_name (META_CURSOR_DEFAULT)); + } XDefineCursor (x11_display->xdisplay, x11_display->xroot, xcursor); XFlush (x11_display->xdisplay);