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]]
name = "swayr"
version = "0.10.0-beta.4"
version = "0.10.0-beta.5"
dependencies = [
"clap",
"directories",

@ -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;
}

Loading…
Cancel
Save