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

This commit is contained in:
Ivan Molodetskikh
2025-05-19 09:17:40 +03:00
parent ae89cb6017
commit 3f2b7e63ba
+2 -1
View File
@@ -996,12 +996,13 @@ impl State {
&& surface.cached_state().keyboard_interactivity
== wlr_layer::KeyboardInteractivity::OnDemand;
// Check if it moved to the overview backdrop.
if let Some(mapped) = self.niri.mapped_layer_surfaces.get(surface) {
// Check if it moved to the overview backdrop.
if mapped.place_within_backdrop() {
good = false;
}
} else {
// The layer surface is alive but it got unmapped.
good = false;
}