From 90e1eab7a856a180aaef7c95fc1a8ff52055ee3b Mon Sep 17 00:00:00 2001 From: Victoria Brekenfeld Date: Mon, 5 Jun 2023 18:16:32 +0200 Subject: [PATCH] tiling: Fix lateral movement #129 --- src/shell/layout/tiling/mod.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/shell/layout/tiling/mod.rs b/src/shell/layout/tiling/mod.rs index e793ba4d..68c09483 100644 --- a/src/shell/layout/tiling/mod.rs +++ b/src/shell/layout/tiling/mod.rs @@ -632,7 +632,7 @@ impl TilingLayout { | (Orientation::Vertical, Direction::Up) | (Orientation::Vertical, Direction::Down) ) { - if parent_data.len() == 2 { + if len == 2 { if let Some(sibling) = tree .children_ids(&parent) .unwrap() @@ -648,7 +648,8 @@ impl TilingLayout { | (Orientation::Vertical, Direction::Left) | (Orientation::Horizontal, Direction::Up) | (Orientation::Horizontal, Direction::Down) - ) { + ) && child_id == node_id + { // ..lets move into our sibling group instead let idx =