From be9a4db63eb0e2b935d33e0779b67e3b0e686146 Mon Sep 17 00:00:00 2001 From: Victoria Brekenfeld Date: Mon, 30 Jan 2023 15:13:51 +0100 Subject: [PATCH] shell: Close layer-surfaces when removing outputs --- src/shell/mod.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/shell/mod.rs b/src/shell/mod.rs index 005636b2..4685fc14 100644 --- a/src/shell/mod.rs +++ b/src/shell/mod.rs @@ -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);