mirror of
https://github.com/niri-wm/niri.git
synced 2026-06-21 02:01:55 +07:00
Improve comment in on-demand layer-shell keyboard alive check
This commit is contained in:
+2
-1
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user