layout/tiling: Skip unnecessary stack window swap

This commit is contained in:
Victoria Brekenfeld 2025-12-16 18:46:26 +01:00 committed by Victoria Brekenfeld
parent 8c0136cec0
commit 23e1bae96e

View file

@ -847,7 +847,8 @@ impl TilingLayout {
if this.output == other_output
&& this_desc.handle == other_desc.handle
&& this_desc.node == other_desc.node
&& this_desc.stack_window.is_some() != other_desc.stack_window.is_some()
&& (this_desc.stack_window == other_desc.stack_window
|| this_desc.stack_window.is_some() != other_desc.stack_window.is_some())
{
return None;
}