From 3143115ec010a9814a7146b7939687c914c08a77 Mon Sep 17 00:00:00 2001 From: tjallingt Date: Thu, 9 Apr 2026 16:41:54 +0200 Subject: [PATCH] Use XCURSOR_SIZE and XCURSOR_THEME when creating the cursor manager --- seat.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/seat.c b/seat.c index 5f659a4..f38b50a 100644 --- a/seat.c +++ b/seat.c @@ -836,7 +836,10 @@ seat_create(struct cg_server *server, struct wlr_backend *backend) wlr_cursor_attach_output_layout(seat->cursor, server->output_layout); if (!seat->xcursor_manager) { - seat->xcursor_manager = wlr_xcursor_manager_create(NULL, XCURSOR_SIZE); + const char *theme = getenv("XCURSOR_THEME"); + const char *size_ascii = getenv("XCURSOR_SIZE"); + int32_t size = size_ascii ? atoi(size_ascii) : XCURSOR_SIZE; + seat->xcursor_manager = wlr_xcursor_manager_create(theme, size); if (!seat->xcursor_manager) { wlr_log(WLR_ERROR, "Cannot create XCursor manager"); wlr_cursor_destroy(seat->cursor);