Fix workspace indices when workspace is moved to another output
Previously, workspace numbering could end up with numbers skipped, because an intermediate workspace was moved.
This commit is contained in:
parent
c8ebac354c
commit
fb2631adce
1 changed files with 3 additions and 0 deletions
|
|
@ -678,6 +678,9 @@ impl Workspaces {
|
||||||
if set.workspaces.is_empty() {
|
if set.workspaces.is_empty() {
|
||||||
set.add_empty_workspace(workspace_state);
|
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
|
set.active = set
|
||||||
.workspaces
|
.workspaces
|
||||||
.iter()
|
.iter()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue