This commit is contained in:
Scott Leggett 2026-06-13 22:28:48 +08:00 committed by GitHub
commit cf28c0c7fd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1312,6 +1312,9 @@ void seat_set_focus_layer(struct sway_seat *seat,
} else if (!layer) { } else if (!layer) {
return; return;
} }
if (server.session_lock.lock) {
return;
}
assert(layer->surface->mapped); assert(layer->surface->mapped);
if (layer->current.layer >= ZWLR_LAYER_SHELL_V1_LAYER_TOP && if (layer->current.layer >= ZWLR_LAYER_SHELL_V1_LAYER_TOP &&
layer->current.keyboard_interactive layer->current.keyboard_interactive