From 017efa4b74e74de22bd4239d53c700e111708394 Mon Sep 17 00:00:00 2001 From: Julian Orth Date: Thu, 28 Mar 2024 18:22:28 +0100 Subject: [PATCH] tree: recompute output render data after connect --- src/tasks/connector.rs | 2 +- src/tree/output.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/tasks/connector.rs b/src/tasks/connector.rs index a88060c6..f8bdcc48 100644 --- a/src/tasks/connector.rs +++ b/src/tasks/connector.rs @@ -201,11 +201,11 @@ impl ConnectorHandler { if let Some(config) = self.state.config.get() { config.connector_connected(self.id); } + on.schedule_update_render_data(); self.state.root.outputs.set(self.id, on.clone()); self.state.root.update_extents(); self.state.add_global(&global); self.state.tree_changed(); - self.state.damage(); 'outer: loop { while let Some(event) = self.data.connector.event() { match event { diff --git a/src/tree/output.rs b/src/tree/output.rs index b0e274fe..165abe34 100644 --- a/src/tree/output.rs +++ b/src/tree/output.rs @@ -279,6 +279,7 @@ impl OutputNode { tex: title, }); } + self.state.damage(); } pub fn ensure_workspace(self: &Rc) -> Rc {