mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-12-26 11:39:47 +01:00
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.
This commit is contained in:
parent
86e9309808
commit
97954154bc
1 changed files with 0 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue