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

@ -10,6 +10,13 @@ lab_wlr_scene_get_rect(struct wlr_scene_node *node)
return (struct wlr_scene_rect *)node;
}
struct wlr_scene_tree *
lab_scene_tree_from_node(struct wlr_scene_node *node)
{
assert(node->type == WLR_SCENE_NODE_TREE);
return (struct wlr_scene_tree *)node;
}
struct wlr_surface *
lab_wlr_surface_from_node(struct wlr_scene_node *node)
{