From: tokyo4j Date: Mon, 6 Jan 2025 14:49:08 +0000 (+0900) Subject: cursor: fix invisible cursor on application after reconfigure X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=6f1ef10d58062f0403986fd142ae852724194dd6;p=proto%2Flabwc.git 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. --- 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;