Fall back to the 'default' cursor

The Adwaita cursor theme is moving to shipping just standard cursor
names, so we should fall back to 'default' instead of 'left_ptr' if
a named cursor can't be found.

Fixes: #6259
This commit is contained in:
Matthias Clasen
2023-12-08 10:30:12 +04:00
parent cde309d9fa
commit 262be35f43

View File

@ -161,7 +161,7 @@ _gdk_wayland_cursor_update (GdkWaylandDisplay *display_wayland,
{
c = wl_cursor_theme_get_cursor (theme, name_fallback (cursor->name));
if (!c)
c = wl_cursor_theme_get_cursor (theme, "left_ptr");
c = wl_cursor_theme_get_cursor (theme, "default");
}
}