1
0
Fork 0
forked from wry/wry

Merge pull request #703 from mahkoh/jorth/fix-output-child-visit

tree: fix visiting output children
This commit is contained in:
mahkoh 2025-12-21 15:52:40 +01:00 committed by GitHub
commit af0477f327
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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);
}
}