From 1b122422f5d43a8490ab8b1c5790831b29c4f6ad Mon Sep 17 00:00:00 2001 From: tokyo4j Date: Wed, 3 Jul 2024 00:16:30 +0900 Subject: [PATCH] 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. --- src/session-lock.c | 1 + 1 file changed, 1 insertion(+) 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) { -- 2.52.0