diff --git a/src/shell/mod.rs b/src/shell/mod.rs index 29503b99..5ab2737a 100644 --- a/src/shell/mod.rs +++ b/src/shell/mod.rs @@ -683,7 +683,7 @@ impl Workspaces { // Remove workspaces that prefer this output from other sets let mut moved_workspaces = Vec::new(); for other_set in self.sets.values_mut() { - let active_handle = other_set.workspaces[set.active].handle; + let active_handle = other_set.workspaces[other_set.active].handle; let (prefers, doesnt) = other_set .workspaces .drain(..)