aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2022-01-29 12:06:13 +0000
committerDaniel Eklöf <daniel@ekloef.se>2022-01-29 12:06:13 +0000
commit7930652b30175918458bd00835514d555e3a57b1 (patch)
tree022a5e3410b477e9b1b4a290dfd4ec43f1affb0d
parentdoc: foot.1: add missing ‘*’ (diff)
parentwayland: use getenv() according to spec (diff)
Merge branch 'xcursor-getenv-fix'
-rw-r--r--wayland.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/wayland.c b/wayland.c
index 12e3f5b3..e9f7d063 100644
--- a/wayland.c
+++ b/wayland.c
@@ -1630,7 +1630,6 @@ wayl_reload_xcursor_theme(struct seat *seat, int new_scale)
seat->pointer.cursor = NULL;
}
- const char *xcursor_theme = getenv("XCURSOR_THEME");
int xcursor_size = 24;
{
@@ -1642,6 +1641,8 @@ wayl_reload_xcursor_theme(struct seat *seat, int new_scale)
}
}
+ const char *xcursor_theme = getenv("XCURSOR_THEME");
+
LOG_INFO("cursor theme: %s, size: %u, scale: %d",
xcursor_theme, xcursor_size, new_scale);