Skip to content

Commit

Permalink
Merge pull request #139 from mahkoh/jorth/output-damage
Browse files Browse the repository at this point in the history
tree: recompute output render data after connect
  • Loading branch information
mahkoh authored Mar 28, 2024
2 parents 9b1a85b + 017efa4 commit a65921c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/tasks/connector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
1 change: 1 addition & 0 deletions src/tree/output.rs
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@ impl OutputNode {
tex: title,
});
}
self.state.damage();
}

pub fn ensure_workspace(self: &Rc<Self>) -> Rc<WorkspaceNode> {
Expand Down

0 comments on commit a65921c

Please sign in to comment.