diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/niri.rs | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/niri.rs b/src/niri.rs index 4ceb16a8..f893bb33 100644 --- a/src/niri.rs +++ b/src/niri.rs @@ -2872,11 +2872,14 @@ impl Niri { } let mon = self.layout.monitor_for_output(output).unwrap(); - if !mon.render_above_top_layer() - && (layer_popup_under(Layer::Top) - || layer_toplevel_under(Layer::Top) - || layer_popup_under(Layer::Bottom) - || layer_popup_under(Layer::Background)) + if mon.render_above_top_layer() { + return false; + } + + if layer_popup_under(Layer::Top) + || layer_toplevel_under(Layer::Top) + || layer_popup_under(Layer::Bottom) + || layer_popup_under(Layer::Background) { return true; } |
