forge
Explore
Log in

Don't you dare go Hollow

Simplify condition

Browse files at this commit

9e5e0c85bb3c50d00108a4a2de0fe45bfc4ebb8dIvan MolodetskikhParent: 5cd8040
src/niri.rsmodified+8 -5
@@ -2872,11 +2872,14 @@ impl Niri {
2872 }2872 }
2873 2873
2874 let mon = self.layout.monitor_for_output(output).unwrap();2874 let mon = self.layout.monitor_for_output(output).unwrap();
2875- if !mon.render_above_top_layer()2875+ if mon.render_above_top_layer() {
2876- && (layer_popup_under(Layer::Top)2876+ return false;
2877- || layer_toplevel_under(Layer::Top)2877+ }
2878- || layer_popup_under(Layer::Bottom)2878+
2879- || layer_popup_under(Layer::Background))2879+ if layer_popup_under(Layer::Top)
2880+ || layer_toplevel_under(Layer::Top)
2881+ || layer_popup_under(Layer::Bottom)
2882+ || layer_popup_under(Layer::Background)
2880 {2883 {
2881 return true;2884 return true;
2882 }2885 }