From f5f58b0663b1724ee5d74619a45596cc0474121d Mon Sep 17 00:00:00 2001 From: Victoria Brekenfeld Date: Mon, 12 Jun 2023 17:43:24 +0200 Subject: [PATCH] tiling: Fix too eager moving into stack --- src/shell/layout/tiling/mod.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/shell/layout/tiling/mod.rs b/src/shell/layout/tiling/mod.rs index 8e37a8ac..48f3a1b5 100644 --- a/src/shell/layout/tiling/mod.rs +++ b/src/shell/layout/tiling/mod.rs @@ -790,6 +790,7 @@ impl TilingLayout { let result = if tree.get(&next_child_id).unwrap().data().is_stack() && tree.get(&node_id).unwrap().data().is_mapped(None) && !tree.get(&node_id).unwrap().data().is_stack() + && len == 2 { let node = tree .remove_node(node_id, RemoveBehavior::DropChildren)