Skip to content

Commit e55d16b

Browse files
wash2Drakulix
authored andcommitted
fix: unset grab if focusing exclusive layer shell surface
1 parent 7fd0332 commit e55d16b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/shell/focus/mod.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,14 @@ fn update_focus_state(
375375
}
376376
}
377377

378+
if target.is_some_and(|t| {
379+
matches!(
380+
t,
381+
KeyboardFocusTarget::LayerSurface(layer_surface) if layer_surface.cached_state().keyboard_interactivity == KeyboardInteractivity::Exclusive
382+
)
383+
}) {
384+
keyboard.unset_grab(state);
385+
}
378386
let serial = serial.unwrap_or_else(|| SERIAL_COUNTER.next_serial());
379387
state
380388
.common

0 commit comments

Comments
 (0)