Skip to content

Commit

Permalink
Fix workspace indices when workspace is moved to another output
Browse files Browse the repository at this point in the history
Previously, workspace numbering could end up with numbers skipped,
because an intermediate workspace was moved.
  • Loading branch information
ids1024 authored and Drakulix committed Oct 21, 2024
1 parent c8ebac3 commit fb2631a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/shell/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -678,6 +678,9 @@ impl Workspaces {
if set.workspaces.is_empty() {
set.add_empty_workspace(workspace_state);
}
for (i, workspace) in set.workspaces.iter_mut().enumerate() {
workspace_set_idx(workspace_state, i as u8 + 1, set.idx, &workspace.handle);
}
set.active = set
.workspaces
.iter()
Expand Down

0 comments on commit fb2631a

Please sign in to comment.