forge
Explore
Log in

Don't you dare go Hollow

Improve comment in on-demand layer-shell keyboard alive check

Browse files at this commit

3f2b7e63ba15cf33475116d32e8b7d22208a8438Ivan MolodetskikhParent: ae89cb6
src/niri.rsmodified+2 -1
@@ -996,12 +996,13 @@ impl State {
996996 && surface.cached_state().keyboard_interactivity
997997 == wlr_layer::KeyboardInteractivity::OnDemand;
998998
999- // Check if it moved to the overview backdrop.
1000999 if let Some(mapped) = self.niri.mapped_layer_surfaces.get(surface) {
1000+ // Check if it moved to the overview backdrop.
10011001 if mapped.place_within_backdrop() {
10021002 good = false;
10031003 }
10041004 } else {
1005+ // The layer surface is alive but it got unmapped.
10051006 good = false;
10061007 }
10071008