]> git.mdlowis.com Git - proto/labwc.git/commitdiff
session-lock: clear focused surface on lock
authortokyo4j <hrak1529@gmail.com>
Tue, 2 Jul 2024 15:16:30 +0000 (00:16 +0900)
committerHiroaki Yamamoto <hrak1529@gmail.com>
Sun, 7 Jul 2024 06:48:32 +0000 (15:48 +0900)
Before this commit, keyboard events were sent to the focused surface
before the session-lock client maps its surfaces.

src/session-lock.c

index 9bb54d1a148a98849eda27ecdf7fba017111cdfa..bdf3f05310336e515351da8140ff194b44f83f72 100644 (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) {