Fix previous fix

timeout_old
Tassilo Horn 3 years ago
parent b8ec366837
commit bdd50f1311
  1. 2
      Cargo.lock
  2. 2
      src/tree.rs

2
Cargo.lock generated

@ -360,7 +360,7 @@ dependencies = [
[[package]] [[package]]
name = "swayr" name = "swayr"
version = "0.10.0-beta.4" version = "0.10.0-beta.5"
dependencies = [ dependencies = [
"clap", "clap",
"directories", "directories",

@ -286,7 +286,7 @@ impl<'a> Tree<'a> {
for ws in workspaces { for ws in workspaces {
v.push(ws); v.push(ws);
let mut wins = self.sorted_nodes_of_type_1(ws, Type::Window); 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); wins.rotate_left(1);
first = false; first = false;
} }

Loading…
Cancel
Save