wlr_scene: Move children list from wlr_scene_node to wlr_scene_tree

This commit is contained in:
Alexander Orzechowski 2022-05-18 18:16:44 -04:00 committed by Isaac Freund
parent cb2dbc327e
commit 71f8a48d38
2 changed files with 71 additions and 57 deletions

View file

@ -51,9 +51,7 @@ struct wlr_scene_node {
enum wlr_scene_node_type type;
struct wlr_scene_tree *parent;
struct wl_list link; // wlr_scene_node.children
struct wl_list children; // wlr_scene_node.link
struct wl_list link; // wlr_scene_tree.children
bool enabled;
int x, y; // relative to parent
@ -76,6 +74,8 @@ enum wlr_scene_debug_damage_option {
/** A sub-tree in the scene-graph. */
struct wlr_scene_tree {
struct wlr_scene_node node;
struct wl_list children; // wlr_scene_node.link
};
/** The root scene-graph node. */