mirror of
https://github.com/niri-wm/niri.git
synced 2026-06-23 02:05:33 +07:00
Simplify condition
This commit is contained in:
+8
-5
@@ -2872,11 +2872,14 @@ impl Niri {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let mon = self.layout.monitor_for_output(output).unwrap();
|
let mon = self.layout.monitor_for_output(output).unwrap();
|
||||||
if !mon.render_above_top_layer()
|
if mon.render_above_top_layer() {
|
||||||
&& (layer_popup_under(Layer::Top)
|
return false;
|
||||||
|| layer_toplevel_under(Layer::Top)
|
}
|
||||||
|| layer_popup_under(Layer::Bottom)
|
|
||||||
|| layer_popup_under(Layer::Background))
|
if layer_popup_under(Layer::Top)
|
||||||
|
|| layer_toplevel_under(Layer::Top)
|
||||||
|
|| layer_popup_under(Layer::Bottom)
|
||||||
|
|| layer_popup_under(Layer::Background)
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user