From 3f2b7e63ba15cf33475116d32e8b7d22208a8438 Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Mon, 19 May 2025 09:17:40 +0300 Subject: Improve comment in on-demand layer-shell keyboard alive check --- src/niri.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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; } -- cgit