shell: Put toplevel on new workspace, when removing Outputs
This commit is contained in:
parent
de83185af9
commit
747a24199a
1 changed files with 6 additions and 0 deletions
|
|
@ -728,6 +728,12 @@ impl Shell {
|
||||||
[WorkspaceCapabilities::Activate].into_iter(),
|
[WorkspaceCapabilities::Activate].into_iter(),
|
||||||
);
|
);
|
||||||
workspace.handle = workspace_handle;
|
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
|
// update mapping
|
||||||
workspace.map_output(new_output, (0, 0).into());
|
workspace.map_output(new_output, (0, 0).into());
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue