From: tokyo4j Date: Tue, 2 Jul 2024 15:16:30 +0000 (+0900) Subject: session-lock: clear focused surface on lock X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=1b122422f5d43a8490ab8b1c5790831b29c4f6ad;p=proto%2Flabwc.git 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. --- diff --git a/src/session-lock.c b/src/session-lock.c index 9bb54d1a..bdf3f053 100644 --- a/src/session-lock.c +++ b/src/session-lock.c @@ -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) {