mirror of
https://github.com/labwc/labwc.git
synced 2025-11-04 13:30:07 -05:00
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:
parent
08518513cc
commit
efd9155513
6 changed files with 30 additions and 7 deletions
12
src/debug.c
12
src/debug.c
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue