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 {