Skip to content

Commit

Permalink
shell: Put toplevel on new workspace, when removing Outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
Drakulix committed Sep 21, 2023
1 parent de83185 commit 747a241
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/shell/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -728,6 +728,12 @@ impl Shell {
[WorkspaceCapabilities::Activate].into_iter(),
);
workspace.handle = workspace_handle;
for window in workspace.mapped() {
for (surface, _) in window.windows() {
self.toplevel_info_state
.toplevel_enter_workspace(&surface, &workspace.handle);
}
}

// update mapping
workspace.map_output(new_output, (0, 0).into());
Expand Down

0 comments on commit 747a241

Please sign in to comment.