shell: Close layer-surfaces when removing outputs

This commit is contained in:
Victoria Brekenfeld 2023-01-30 15:13:51 +01:00
parent d65e16fc94
commit be9a4db63e

View file

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