From 810414cabae592c913a5a1125532a4b6e8306cf5 Mon Sep 17 00:00:00 2001 From: Keith Bowes Date: Sun, 23 Feb 2020 11:09:18 -0500 Subject: [PATCH] Actually use the user's preferred Xcursor theme/size --- waybox/cursor.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/waybox/cursor.c b/waybox/cursor.c index 2c96d10..739f904 100644 --- a/waybox/cursor.c +++ b/waybox/cursor.c @@ -164,7 +164,8 @@ struct wb_cursor *wb_cursor_create(struct wb_server *server) { cursor->cursor = wlr_cursor_create(); cursor->server = server; - cursor->xcursor_manager = wlr_xcursor_manager_create(NULL, 24); + const char *xcursor_size = getenv("XCURSOR_SIZE"); + cursor->xcursor_manager = wlr_xcursor_manager_create(getenv("XCURSOR_THEME"), xcursor_size ? atoi(xcursor_size) : 24); wlr_xcursor_manager_load(cursor->xcursor_manager, 1); cursor->cursor_motion.notify = handle_cursor_motion;