cursor: Try to fall back to a default xcursor theme first
The use case is systems where for some reason the current xcursor theme cannot be accessed (an application packaged as a strictly confined snap, for example). Before falling back to wayland's default cursor theme, it is worth trying the xcursor theme called "default", which hopefully looks better than the former. Fixes: https://gitlab.gnome.org/Community/Ubuntu/gnome-sdk/-/issues/6 Signed-off-by: Olivier Tilloy <olivier.tilloy@canonical.com>
This commit is contained in:
parent
c4453ce1a5
commit
f80879c03c
|
@ -404,6 +404,9 @@ wl_cursor_theme_load(const char *name, int size, struct wl_shm *shm)
|
|||
|
||||
xcursor_load_theme(name, size, load_callback, theme);
|
||||
|
||||
if (theme->cursor_count == 0)
|
||||
xcursor_load_theme(NULL, size, load_callback, theme);
|
||||
|
||||
if (theme->cursor_count == 0)
|
||||
load_default_theme(theme);
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user