]> git.mdlowis.com Git - proto/labwc.git/commitdiff
src/cursor.c: make sure the cursor is visible after startup
authorConsolatis <35009135+Consolatis@users.noreply.github.com>
Tue, 28 Mar 2023 17:23:49 +0000 (19:23 +0200)
committerJohan Malm <johanmalm@users.noreply.github.com>
Wed, 29 Mar 2023 20:39:11 +0000 (21:39 +0100)
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

index 2ce8e293db29eca8ccd299e73327f6672f4aea03..7b7c5be84c8ffea8d2f3cf31aab7bce27451735c 100644 (file)
@@ -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;