mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2026-03-21 05:34:00 -04:00
cursor: rename load_default_theme to load_fallback_theme
The theme getting loaded by this function is not to be confused with the theme named "default" located on the filesystem. Instead, it's a minimal theme directly bundled into libwayland-cursor. Make this clearer by naming this theme "fallback". Signed-off-by: Simon Ser <contact@emersion.fr>
This commit is contained in:
parent
f80879c03c
commit
2dfa0dcb24
1 changed files with 2 additions and 2 deletions
|
|
@ -252,7 +252,7 @@ err_free_cursor:
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
load_default_theme(struct wl_cursor_theme *theme)
|
load_fallback_theme(struct wl_cursor_theme *theme)
|
||||||
{
|
{
|
||||||
uint32_t i;
|
uint32_t i;
|
||||||
|
|
||||||
|
|
@ -408,7 +408,7 @@ wl_cursor_theme_load(const char *name, int size, struct wl_shm *shm)
|
||||||
xcursor_load_theme(NULL, size, load_callback, theme);
|
xcursor_load_theme(NULL, size, load_callback, theme);
|
||||||
|
|
||||||
if (theme->cursor_count == 0)
|
if (theme->cursor_count == 0)
|
||||||
load_default_theme(theme);
|
load_fallback_theme(theme);
|
||||||
|
|
||||||
return theme;
|
return theme;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue