From bdd50f1311376e2f5e49a9eef6d01d07ab8843a1 Mon Sep 17 00:00:00 2001 From: Tassilo Horn Date: Fri, 19 Nov 2021 08:40:09 +0100 Subject: [PATCH] Fix previous fix --- Cargo.lock | 2 +- src/tree.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 633f083..ce1734b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -360,7 +360,7 @@ dependencies = [ [[package]] name = "swayr" -version = "0.10.0-beta.4" +version = "0.10.0-beta.5" dependencies = [ "clap", "directories", diff --git a/src/tree.rs b/src/tree.rs index 70d9613..2f2bfa2 100644 --- a/src/tree.rs +++ b/src/tree.rs @@ -286,7 +286,7 @@ impl<'a> Tree<'a> { for ws in workspaces { v.push(ws); let mut wins = self.sorted_nodes_of_type_1(ws, Type::Window); - if first && !v.is_empty() { + if first && !wins.is_empty() { wins.rotate_left(1); first = false; }