shell: Fix incorrect workspace numbering
This commit is contained in:
parent
3d31641c98
commit
4317c4c5f3
1 changed files with 2 additions and 2 deletions
|
|
@ -168,7 +168,7 @@ impl WorkspaceSet {
|
||||||
let mut workspace = create_workspace(&mut state, &self.group, false);
|
let mut workspace = create_workspace(&mut state, &self.group, false);
|
||||||
workspace_set_idx(
|
workspace_set_idx(
|
||||||
&mut state,
|
&mut state,
|
||||||
self.workspaces.len() as u8,
|
self.workspaces.len() as u8 + 1,
|
||||||
self.idx,
|
self.idx,
|
||||||
&workspace.handle,
|
&workspace.handle,
|
||||||
);
|
);
|
||||||
|
|
@ -270,7 +270,7 @@ impl WorkspaceSet {
|
||||||
fn update_idx(&mut self, state: &mut WorkspaceUpdateGuard<'_, State>, idx: usize) {
|
fn update_idx(&mut self, state: &mut WorkspaceUpdateGuard<'_, State>, idx: usize) {
|
||||||
self.idx = idx;
|
self.idx = idx;
|
||||||
for (i, workspace) in self.workspaces.iter().enumerate() {
|
for (i, workspace) in self.workspaces.iter().enumerate() {
|
||||||
workspace_set_idx(state, i as u8, idx, &workspace.handle);
|
workspace_set_idx(state, i as u8 + 1, idx, &workspace.handle);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue