From e44d56567284c5860c1c3148c09628b50ce477db Mon Sep 17 00:00:00 2001 From: Consolatis <35009135+Consolatis@users.noreply.github.com> Date: Tue, 28 Mar 2023 19:23:49 +0200 Subject: [PATCH] src/cursor.c: make sure the cursor is visible after startup Before this patch, the cursor was invisible after labwc startup unless manually moved by the user (or being positioned on top of some some automatically spawned client surface). This patch sets the cursor from its uninitialized value (LAB_CURSOR_CLIENT) to the default cursor. --- src/cursor.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/cursor.c b/src/cursor.c index 2ce8e293..7b7c5be8 100644 --- a/src/cursor.c +++ b/src/cursor.c @@ -1176,6 +1176,9 @@ cursor_init(struct seat *seat) cursor_names = cursors_x11; } + /* Set the initial cursor image so the cursor is visible right away */ + cursor_set(seat, LAB_CURSOR_DEFAULT); + dnd_init(seat); seat->cursor_motion.notify = cursor_motion;