shell: Fix getting active_handle for other_set

Use `other_set.active`, not `set_active`.
This commit is contained in:
Ian Douglas Scott 2025-03-10 13:27:51 -07:00 committed by Victoria Brekenfeld
parent 8a32571b8a
commit 2b7f898e83

View file

@ -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(..)