fix(input): match layer keyboard focus to fullscreen visibility (#49)

* fix(input): require mapped layers for keyboard focus

* fix(input): match layer keyboard focus to fullscreen visibility

---------

Co-authored-by: Samuel Onoja <[email protected]>
This commit is contained in:
Samuel OnojaandSamuel Onoja authored and GitHub committed 2026-10-14 13:30:14 +01:00
1 parent b5f7793870
commit 9251522a69
8 files changed
+314 -6

No files matched your search

+1 -1
View File
@@ -126,7 +126,7 @@ fn scene_elements(
} else {
Vec::new()
};
let upper_layers: &[Layer] = if state.output_has_fullscreen_for_frame(output, frame.overview.is_presenting()) {
let upper_layers: &[Layer] = if !state.layer_visible_for_frame(output, Layer::Top, frame.overview.is_presenting()) {
&[Layer::Overlay]
} else {
&[Layer::Overlay, Layer::Top]