1
0
Fork 0
forked from wry/wry

tree: unify toplevel active changes

This commit is contained in:
Julian Orth 2024-03-04 13:49:05 +01:00
parent 3dfdc26592
commit 2445226cbe
5 changed files with 32 additions and 26 deletions

View file

@ -1128,10 +1128,7 @@ impl Node for ContainerNode {
}
fn node_active_changed(&self, active: bool) {
self.toplevel_data.active.set(active);
if let Some(parent) = self.toplevel_data.parent.get() {
parent.node_child_active_changed(self, active, 1);
}
self.toplevel_data.update_self_active(self, active);
}
fn node_find_tree_at(&self, x: i32, y: i32, tree: &mut Vec<FoundNode>) -> FindTreeResult {