Merge pull request #235 from pop-os/fix-move-workspace_jammy
fix: reset name and state for workspaces after moving them to a new group
This commit is contained in:
commit
f9dc67a24a
1 changed files with 5 additions and 1 deletions
|
|
@ -587,9 +587,13 @@ impl Workspaces {
|
|||
);
|
||||
}
|
||||
set.workspaces.extend(moved_workspaces);
|
||||
for workspace in &mut set.workspaces {
|
||||
for (i, workspace) in set.workspaces.iter_mut().enumerate() {
|
||||
workspace.set_output(output, toplevel_info_state);
|
||||
workspace.refresh(xdg_activation_state);
|
||||
workspace_set_idx(workspace_state, i as u8 + 1, set.idx, &workspace.handle);
|
||||
if i == set.active {
|
||||
workspace_state.add_workspace_state(&workspace.handle, WState::Active);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue