]> git.mdlowis.com Git - proto/labwc.git/commitdiff
cursor: fix invisible cursor on application after reconfigure
authortokyo4j <hrak1529@gmail.com>
Mon, 6 Jan 2025 14:49:08 +0000 (23:49 +0900)
committerJohan Malm <johanmalm@users.noreply.github.com>
Mon, 6 Jan 2025 21:05:54 +0000 (21:05 +0000)
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

index 7b4ff90bf53ee638ce4b0c5d67061d2db9dbfb8c..0cc25e15824da03f2d56b5d0f731f1d6ef0da4cd 100644 (file)
@@ -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;