Skip to content

Commit

Permalink
Merge pull request #235 from pop-os/fix-move-workspace_jammy
Browse files Browse the repository at this point in the history
fix: reset name and state for workspaces after moving them to a new group
  • Loading branch information
jackpot51 authored Nov 27, 2023
2 parents c99126d + 048490d commit f9dc67a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/shell/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
}
}
Expand Down

0 comments on commit f9dc67a

Please sign in to comment.