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

@ -113,10 +113,7 @@ impl Node for PlaceholderNode {
}
fn node_active_changed(&self, active: bool) {
self.toplevel.active.set(active);
if let Some(parent) = self.toplevel.parent.get() {
parent.node_child_active_changed(self, active, 1);
}
self.toplevel.update_self_active(self, active);
}
fn node_find_tree_at(&self, _x: i32, _y: i32, _tree: &mut Vec<FoundNode>) -> FindTreeResult {