opt: optimize keyborad focus change after unlock

This commit is contained in:
DreamMaoMao 2025-08-01 09:43:56 +08:00
parent 65136483ca
commit b6c72b7e81

View file

@ -2655,7 +2655,7 @@ void destroylocksurface(struct wl_listener *listener, void *data) {
wl_list_remove(&m->destroy_lock_surface.link); wl_list_remove(&m->destroy_lock_surface.link);
if (lock_surface->surface != seat->keyboard_state.focused_surface) { if (lock_surface->surface != seat->keyboard_state.focused_surface) {
if (exclusive_focus) { if (exclusive_focus && !locked) {
exclusive_focus = NULL; exclusive_focus = NULL;
reset_exclusive_layer(m); reset_exclusive_layer(m);
} }