From 6f1ef10d58062f0403986fd142ae852724194dd6 Mon Sep 17 00:00:00 2001 From: tokyo4j Date: Mon, 6 Jan 2025 23:49:08 +0900 Subject: [PATCH] cursor: fix invisible cursor on application after reconfigure On reconfigure, we should send wl_pointer.{leave,enter} events if the cursor is on an application surface to let the application update the cursor, but bad788cc prevented these events from being sent. --- src/input/cursor.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/input/cursor.c b/src/input/cursor.c index 7b4ff90b..0cc25e15 100644 --- a/src/input/cursor.c +++ b/src/input/cursor.c @@ -401,6 +401,7 @@ cursor_update_image(struct seat *seat) if (seat->seat->pointer_state.focused_surface) { seat->server_cursor = LAB_CURSOR_DEFAULT; wlr_cursor_set_xcursor(seat->cursor, seat->xcursor_manager, ""); + wlr_seat_pointer_clear_focus(seat->seat); cursor_update_focus(seat->server); } return;