1
0
Fork 0
forked from wry/wry

tree: fix visiting output children

This commit is contained in:
Julian Orth 2025-12-21 15:42:26 +01:00
parent 12ec0e6502
commit 510f49e7bc
2 changed files with 8 additions and 3 deletions

View file

@ -212,6 +212,10 @@ pub trait Node: 'static {
fn node_location(&self) -> Option<NodeLocation>;
fn node_layer(&self) -> NodeLayerLink;
fn node_output_id(&self) -> Option<OutputNodeId> {
self.node_output().map(|o| o.id)
}
fn node_child_title_changed(self: Rc<Self>, child: &dyn Node, title: &str) {
let _ = child;
let _ = title;

View file

@ -990,10 +990,11 @@ impl OutputNode {
fn visit_children(&self, visitor: &mut dyn NodeVisitor) {
self.node_visit_children(visitor);
for ws in self.workspaces.iter() {
for stacked in ws.stacked.iter() {
stacked.deref().clone().node_visit(visitor);
for stacked in self.state.root.stacked.iter() {
if stacked.node_output_id() != Some(self.id) {
continue;
}
stacked.deref().clone().node_visit(visitor);
}
}