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: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3718>
This commit is contained in:
parent
d2c6b77059
commit
807c99fca6
@ -1674,6 +1674,11 @@ meta_x11_display_reload_cursor (MetaX11Display *x11_display)
|
|||||||
/* Set a cursor for X11 applications that don't specify their own */
|
/* Set a cursor for X11 applications that don't specify their own */
|
||||||
xcursor = XcursorLibraryLoadCursor (x11_display->xdisplay,
|
xcursor = XcursorLibraryLoadCursor (x11_display->xdisplay,
|
||||||
meta_cursor_get_name (META_CURSOR_DEFAULT));
|
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);
|
XDefineCursor (x11_display->xdisplay, x11_display->xroot, xcursor);
|
||||||
XFlush (x11_display->xdisplay);
|
XFlush (x11_display->xdisplay);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user