From edcc4b0ed0b8a478f469409ef4b67917256388ec Mon Sep 17 00:00:00 2001 From: Scott Leggett Date: Sun, 31 May 2026 01:17:39 +0800 Subject: [PATCH] lock: commit transaction after unlock This ensures focus changes are correctly reflected when unlocking the screen. --- sway/lock.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sway/lock.c b/sway/lock.c index b1df65718..71473d8a5 100644 --- a/sway/lock.c +++ b/sway/lock.c @@ -9,6 +9,7 @@ #include "sway/output.h" #include "sway/server.h" #include "sway/lock.h" +#include "sway/desktop/transaction.h" struct sway_session_lock_output { struct wlr_scene_tree *tree; @@ -237,6 +238,8 @@ static void handle_unlock(struct wl_listener *listener, void *data) { // Views are now visible, so check if we need to activate inhibition again. sway_idle_inhibit_v1_check_active(); + + transaction_commit_dirty(); } static void handle_abandon(struct wl_listener *listener, void *data) {