From b6c72b7e81ca9213ee0a77c6e2ae42fa6b755201 Mon Sep 17 00:00:00 2001 From: DreamMaoMao <2523610504@qq.com> Date: Fri, 1 Aug 2025 09:43:56 +0800 Subject: [PATCH] opt: optimize keyborad focus change after unlock --- src/mango.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mango.c b/src/mango.c index a9aa928..fcb38c5 100644 --- a/src/mango.c +++ b/src/mango.c @@ -2655,7 +2655,7 @@ void destroylocksurface(struct wl_listener *listener, void *data) { wl_list_remove(&m->destroy_lock_surface.link); if (lock_surface->surface != seat->keyboard_state.focused_surface) { - if (exclusive_focus) { + if (exclusive_focus && !locked) { exclusive_focus = NULL; reset_exclusive_layer(m); }