session-lock: clear focused surface on lock

Before this commit, keyboard events were sent to the focused surface
before the session-lock client maps its surfaces.
This commit is contained in:
tokyo4j 2024-07-03 00:16:30 +09:00 committed by Hiroaki Yamamoto
parent 6bc93cf468
commit 1b122422f5

View file

@ -318,6 +318,7 @@ handle_new_session_lock(struct wl_listener *listener, void *data)
/* Remember the focused view to restore it on unlock */
manager->last_active_view = manager->server->active_view;
seat_focus_surface(&manager->server->seat, NULL);
struct output *output;
wl_list_for_each(output, &manager->server->outputs, link) {