fix: unset grab if focusing exclusive layer shell surface

This commit is contained in:
Ashley Wulber 2025-10-27 16:22:16 -04:00 committed by Victoria Brekenfeld
parent 7fd033295f
commit e55d16b87b

View file

@ -375,6 +375,14 @@ fn update_focus_state(
}
}
if target.is_some_and(|t| {
matches!(
t,
KeyboardFocusTarget::LayerSurface(layer_surface) if layer_surface.cached_state().keyboard_interactivity == KeyboardInteractivity::Exclusive
)
}) {
keyboard.unset_grab(state);
}
let serial = serial.unwrap_or_else(|| SERIAL_COUNTER.next_serial());
state
.common