Merge branch 'default-cursor-xdg' into 'main'

wayland: Look for default cursor theme in XDG directories

See merge request GNOME/gtk!7766
This commit is contained in:
Matthias Clasen 2024-09-30 13:27:57 +00:00
commit 8c46df425e

View File

@ -1131,6 +1131,9 @@ get_cursor_theme (GdkWaylandDisplay *display_wayland,
return theme;
}
if (strcmp (name, "default") != 0)
return get_cursor_theme (display_wayland, "default", size);
/* This may fall back to builtin cursors */
return wl_cursor_theme_create ("/usr/share/icons/default/cursors", size, display_wayland->shm);
}