From 2d8e12be3c5e6c685db05cc0b8c854f5d087cad5 Mon Sep 17 00:00:00 2001 From: Julian Orth Date: Sat, 19 Jul 2025 00:51:04 +0200 Subject: [PATCH] output: clear text textures on shutdown --- src/tree/output.rs | 9 ++++++++- src/tree/workspace.rs | 1 + 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/tree/output.rs b/src/tree/output.rs index 06159db3..928531f2 100644 --- a/src/tree/output.rs +++ b/src/tree/output.rs @@ -439,7 +439,6 @@ impl OutputNode { for workspace in workspaces { workspace.clear(); } - self.render_data.borrow_mut().titles.clear(); self.lock_surface.take(); self.jay_outputs.clear(); self.screencasts.clear(); @@ -449,6 +448,7 @@ impl OutputNode { self.latch_event.clear(); self.vblank_event.clear(); self.presentation_event.clear(); + self.render_data.borrow_mut().clear(); } pub fn on_spaces_changed(self: &Rc) { @@ -1421,6 +1421,13 @@ pub struct OutputRenderData { pub status: Option, } +impl OutputRenderData { + fn clear(&mut self) { + self.titles.clear(); + self.status.take(); + } +} + impl Debug for OutputNode { fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result { f.debug_struct("OutputNode").finish_non_exhaustive() diff --git a/src/tree/workspace.rs b/src/tree/workspace.rs index f081f751..f6ec75b5 100644 --- a/src/tree/workspace.rs +++ b/src/tree/workspace.rs @@ -77,6 +77,7 @@ impl WorkspaceNode { self.jay_workspaces.clear(); self.ext_workspaces.clear(); self.opt.set(None); + self.title_texture.take(); } pub fn update_has_captures(&self) {