diff options
| author | Simon Ser <contact@emersion.fr> | 2021-08-05 17:24:02 +0200 |
|---|---|---|
| committer | Simon Ser <contact@emersion.fr> | 2021-08-05 17:24:02 +0200 |
| commit | 2dfa0dcb24766b03f4a9f05154b474b722aaa025 (patch) | |
| tree | 436cca2315a1aa19f84c52c800aa4a9305375c9e /cursor/wayland-cursor.c | |
| parent | cursor: Try to fall back to a default xcursor theme first (diff) | |
| download | wayland-2dfa0dcb24766b03f4a9f05154b474b722aaa025.tar wayland-2dfa0dcb24766b03f4a9f05154b474b722aaa025.tar.gz wayland-2dfa0dcb24766b03f4a9f05154b474b722aaa025.tar.bz2 wayland-2dfa0dcb24766b03f4a9f05154b474b722aaa025.tar.lz wayland-2dfa0dcb24766b03f4a9f05154b474b722aaa025.tar.xz wayland-2dfa0dcb24766b03f4a9f05154b474b722aaa025.tar.zst wayland-2dfa0dcb24766b03f4a9f05154b474b722aaa025.zip | |
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>
Diffstat (limited to 'cursor/wayland-cursor.c')
| -rw-r--r-- | cursor/wayland-cursor.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cursor/wayland-cursor.c b/cursor/wayland-cursor.c index dd48e21..55c62ee 100644 --- a/cursor/wayland-cursor.c +++ b/cursor/wayland-cursor.c @@ -252,7 +252,7 @@ err_free_cursor: } static void -load_default_theme(struct wl_cursor_theme *theme) +load_fallback_theme(struct wl_cursor_theme *theme) { 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); if (theme->cursor_count == 0) - load_default_theme(theme); + load_fallback_theme(theme); return theme; |
