From: Consolatis <35009135+Consolatis@users.noreply.github.com> Date: Tue, 28 Mar 2023 17:23:49 +0000 (+0200) Subject: src/cursor.c: make sure the cursor is visible after startup X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=e44d56567284c5860c1c3148c09628b50ce477db;p=proto%2Flabwc.git 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. --- 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;