Improve comment in on-demand layer-shell keyboard alive check
Browse files at this commit3f2b7e63ba15cf33475116d32e8b7d22208a8438Parent: ae89cb61 changed file +2 -1
- src/niri.rs +2 -1
src/niri.rsmodified+2 -1
| @@ -996,12 +996,13 @@ impl State { | |||
| 996 | && surface.cached_state().keyboard_interactivity | 996 | && surface.cached_state().keyboard_interactivity |
| 997 | == wlr_layer::KeyboardInteractivity::OnDemand; | 997 | == wlr_layer::KeyboardInteractivity::OnDemand; |
| 998 | 998 | ||
| 999 | - // Check if it moved to the overview backdrop. | ||
| 1000 | if let Some(mapped) = self.niri.mapped_layer_surfaces.get(surface) { | 999 | if let Some(mapped) = self.niri.mapped_layer_surfaces.get(surface) { |
| 1000 | + // Check if it moved to the overview backdrop. | ||
| 1001 | if mapped.place_within_backdrop() { | 1001 | if mapped.place_within_backdrop() { |
| 1002 | good = false; | 1002 | good = false; |
| 1003 | } | 1003 | } |
| 1004 | } else { | 1004 | } else { |
| 1005 | + // The layer surface is alive but it got unmapped. | ||
| 1005 | good = false; | 1006 | good = false; |
| 1006 | } | 1007 | } |
| 1007 | 1008 | ||