shell: Close layer-surfaces when removing outputs
This commit is contained in:
parent
d65e16fc94
commit
be9a4db63e
1 changed files with 7 additions and 0 deletions
|
|
@ -531,6 +531,13 @@ impl Shell {
|
|||
return;
|
||||
}
|
||||
|
||||
{
|
||||
let map = layer_map_for_output(output);
|
||||
for surface in map.layers() {
|
||||
surface.layer_surface().send_close();
|
||||
}
|
||||
}
|
||||
|
||||
let mut state = self.workspace_state.update();
|
||||
self.outputs.retain(|o| o != output);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue