From ab20b299a2639ac917c30cf9aca6f12921995e20 Mon Sep 17 00:00:00 2001 From: Tassilo Horn Date: Sun, 14 Nov 2021 21:05:53 +0100 Subject: [PATCH] Don't rotate_left when there are more container types --- src/tree.rs | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/tree.rs b/src/tree.rs index ebecdbf..2e14023 100644 --- a/src/tree.rs +++ b/src/tree.rs @@ -273,12 +273,6 @@ impl<'a> Tree<'a> { v.append(&mut wins); } - // Rotate until we have the second recently used workspace in front. - v.rotate_left(1); - while v[0].get_type() != Type::Workspace { - v.rotate_left(1); - } - self.as_display_nodes(&v, IndentLevel::WorkspacesZeroWindowsOne) } @@ -319,11 +313,6 @@ impl<'a> Tree<'a> { self.push_subtree_sorted(ws, Rc::clone(&v)); } - // Rotate until we have the second recently used workspace in front. - v.borrow_mut().rotate_left(1); - while v.borrow()[0].get_type() != Type::Workspace { - v.borrow_mut().rotate_left(1); - } let x = self.as_display_nodes(&*v.borrow(), IndentLevel::TreeDepth(2)); x }