1
0
Fork 0
forked from wry/wry

output: clear text textures on shutdown

This commit is contained in:
Julian Orth 2025-07-19 00:51:04 +02:00
parent 90b945b780
commit 2d8e12be3c
2 changed files with 9 additions and 1 deletions

View file

@ -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<Self>) {
@ -1421,6 +1421,13 @@ pub struct OutputRenderData {
pub status: Option<OutputStatus>,
}
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()

View file

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