fix: unset grab if focusing exclusive layer shell surface
This commit is contained in:
parent
7fd033295f
commit
e55d16b87b
1 changed files with 8 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue