From 6675f039f65514629784ea288cd8a018b01ff3b0 Mon Sep 17 00:00:00 2001 From: ShootingStarDragons Date: Tue, 6 Aug 2024 11:06:32 +0859 Subject: [PATCH] feat: remove buffer --- layershellev/src/lib.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/layershellev/src/lib.rs b/layershellev/src/lib.rs index b713a92..a459d35 100644 --- a/layershellev/src/lib.rs +++ b/layershellev/src/lib.rs @@ -1831,6 +1831,12 @@ impl WindowState { else { continue; }; + self.units[index].layer_shell.destroy(); + self.units[index].wl_surface.destroy(); + self.units[index] + .buffer + .as_ref() + .map(|buffer| buffer.destroy()); self.units.remove(index); } _ => {}