diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2025-05-19 09:17:40 +0300 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2025-05-19 09:18:07 +0300 |
| commit | 3f2b7e63ba15cf33475116d32e8b7d22208a8438 (patch) | |
| tree | ef8b7fb77f9b5abd5bfa4a967aae41222998c86a | |
| parent | ae89cb6017668f3a81ccd92461cbbc70ab8377d0 (diff) | |
| download | niri-3f2b7e63ba15cf33475116d32e8b7d22208a8438.tar.gz niri-3f2b7e63ba15cf33475116d32e8b7d22208a8438.tar.bz2 niri-3f2b7e63ba15cf33475116d32e8b7d22208a8438.zip | |
Improve comment in on-demand layer-shell keyboard alive check
| -rw-r--r-- | src/niri.rs | 3 |
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; } |
