Skip to content

Commit

Permalink
fix: reset name and state for workspaces after moving them to a new g…
Browse files Browse the repository at this point in the history
…roup
  • Loading branch information
wash2 committed Nov 27, 2023
1 parent c99126d commit 048490d
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 048490d

Please sign in to comment.