git.lucas.co / cce-gallery
widget gallery and compositor test bench

commitf61c8d79f4e414ce22bc1378ec3337d880fbb185
parentbe0b15e63e
authorLucas Galante <[email protected]>
date2026-07-13 10:03
refactor: tree walks read ctx.tree directly (children/parent left WidgetHost)

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01N4ajhvVZtyEEEus9bodsj3

 src/main.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main.rs b/src/main.rs
index 7392001..c77c45a 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -1363,7 +1363,7 @@ cascades in cce."
             // and any widget with a ui-tree parent (the page selector under the status
             // bar) is covered by that parent's descent — walking it here too would emit
             // its text twice.
-            if w.parent(&self.ui_context).is_some() {
+            if self.ui_context.tree.parent_ptr(w.base().id()).is_some() {
                 continue;
             }
             let mut scratch = cce_ui::scene::paint::PaintCtx::new();