aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIvan Molodetskikh <yalterz@gmail.com>2025-05-19 09:17:40 +0300
committerIvan Molodetskikh <yalterz@gmail.com>2025-05-19 09:18:07 +0300
commit3f2b7e63ba15cf33475116d32e8b7d22208a8438 (patch)
treeef8b7fb77f9b5abd5bfa4a967aae41222998c86a /src
parentae89cb6017668f3a81ccd92461cbbc70ab8377d0 (diff)
downloadniri-3f2b7e63ba15cf33475116d32e8b7d22208a8438.tar.gz
niri-3f2b7e63ba15cf33475116d32e8b7d22208a8438.tar.bz2
niri-3f2b7e63ba15cf33475116d32e8b7d22208a8438.zip
Improve comment in on-demand layer-shell keyboard alive check
Diffstat (limited to 'src')
-rw-r--r--src/niri.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/niri.rs b/src/niri.rs
index a65687be..74632382 100644
--- a/src/niri.rs
+++ b/src/niri.rs
@@ -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;
}