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.
This commit is contained in:
tokyo4j 2025-01-06 23:49:08 +09:00 committed by Johan Malm
parent 773bdc3823
commit 6f1ef10d58

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