shell: Put toplevel on new workspace, when removing Outputs

This commit is contained in:
Victoria Brekenfeld 2023-09-21 12:38:33 +02:00
parent de83185af9
commit 747a24199a

View file

@ -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());