layer: move the "locked" check to seat_force_focus_surface()

This commit is contained in:
Johan Malm 2026-02-18 21:28:56 +00:00 committed by Johan Malm
parent a277c35c3d
commit 00ad5a03f2
2 changed files with 4 additions and 3 deletions

View file

@ -762,6 +762,9 @@ seat_reconfigure(struct server *server)
void
seat_force_focus_surface(struct seat *seat, struct wlr_surface *surface)
{
if (seat->server->session_lock_manager->locked) {
return;
}
uint32_t *pressed_sent_keycodes = key_state_pressed_sent_keycodes();
int nr_pressed_sent_keycodes = key_state_nr_pressed_sent_keycodes();
struct wlr_keyboard *kb = &seat->keyboard_group->keyboard;