aboutsummaryrefslogtreecommitdiff
path: root/xcursor/wlr_xcursor.c
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2023-12-10 12:58:52 +0100
committerSimon Zeni <simon@bl4ckb0ne.ca>2023-12-12 19:45:17 +0000
commitd6998d36ed20a2f67a1714f96fd581d6dc0090a0 (patch)
treee357b23f4ba69a49f298c775c6ce0a0370c942f0 /xcursor/wlr_xcursor.c
parentd7ac8c0cc1e889744563425df48c713304e33b11 (diff)
xcursor: fix duplicate cursor check check in load_callback()
wlr_xcursor_theme_get_cursor() now does some fallback logic. We don't want that for checking whether a cursor has already been loaded. Fixes: dbedcdb418f4 ("xcursor: add fallbacks for legacy names") Closes: https://gitlab.freedesktop.org/wlroots/wlroots/-/issues/3783
Diffstat (limited to 'xcursor/wlr_xcursor.c')
-rw-r--r--xcursor/wlr_xcursor.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/xcursor/wlr_xcursor.c b/xcursor/wlr_xcursor.c
index a946efdf..620b6c78 100644
--- a/xcursor/wlr_xcursor.c
+++ b/xcursor/wlr_xcursor.c
@@ -170,10 +170,13 @@ static struct wlr_xcursor *xcursor_create_from_xcursor_images(
return cursor;
}
+static struct wlr_xcursor *xcursor_theme_get_cursor(struct wlr_xcursor_theme *theme,
+ const char *name);
+
static void load_callback(struct xcursor_images *images, void *data) {
struct wlr_xcursor_theme *theme = data;
- if (wlr_xcursor_theme_get_cursor(theme, images->name)) {
+ if (xcursor_theme_get_cursor(theme, images->name)) {
xcursor_images_destroy(images);
return;
}