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.
This commit is contained in:
Consolatis 2023-03-28 19:23:49 +02:00 committed by Johan Malm
parent 4cd8afa83e
commit e44d565672

View 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;