Chase wlroots: children are now only availabe in tree nodes

Chases wlroots 71f8a48d380701de1e3331d53d470bd76f5f643b
wlr_scene: Move children list from wlr_scene_node to wlr_scene_tree
This commit is contained in:
Consolatis 2022-06-05 17:12:55 +02:00 committed by Johan Malm
parent 08518513cc
commit efd9155513
6 changed files with 30 additions and 7 deletions

View file

@ -172,10 +172,14 @@ dump_tree(struct server *server, struct wlr_scene_node *node,
printf("%*c%s\n", pos + 4 + INDENT_SIZE, ' ', "<skipping children>");
return;
}
struct wlr_scene_node *child;
wl_list_for_each(child, &node->children, link) {
dump_tree(server, child, pos + INDENT_SIZE,
x + child->x, y + child->y);
if (node->type == WLR_SCENE_NODE_TREE) {
struct wlr_scene_node *child;
struct wlr_scene_tree *tree = lab_scene_tree_from_node(node);
wl_list_for_each(child, &tree->children, link) {
dump_tree(server, child, pos + INDENT_SIZE,
x + child->x, y + child->y);
}
}
}