aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2021-08-09 20:11:18 +0200
committerSimon Ser <contact@emersion.fr>2021-08-26 21:12:28 +0200
commit97954154bcac678ef37bfbe22bd4221dae683632 (patch)
treedb87d335a0bde29915733c324ef0a25ada0b4cee
parent86e9309808ae147dff0ac3884148d53b2c3edf2b (diff)
scene: allow nodes to have arbitrary parents
For instance, allow a surface node to be a child of another surface node. This allows easier xdg-popup handling in compositors.
-rw-r--r--types/wlr_scene.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/types/wlr_scene.c b/types/wlr_scene.c
index 453a960c..b2039feb 100644
--- a/types/wlr_scene.c
+++ b/types/wlr_scene.c
@@ -31,7 +31,6 @@ static void scene_node_state_finish(struct wlr_scene_node_state *state) {
static void scene_node_init(struct wlr_scene_node *node,
enum wlr_scene_node_type type, struct wlr_scene_node *parent) {
assert(type == WLR_SCENE_NODE_ROOT || parent != NULL);
- assert(parent == NULL || parent->type == WLR_SCENE_NODE_ROOT);
node->type = type;
node->parent = parent;