aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorAlexander Orzechowski <orzechowski.alexander@gmail.com>2022-05-30 19:23:27 -0400
committerIsaac Freund <mail@isaacfreund.com>2022-05-31 09:14:28 +0000
commitccd0f85c2a36308e35b153c7f9653abac7659af3 (patch)
tree2547f401b86c07dee55f6711bb446d91632e5731 /examples
parent9eb71146ae56c509ee33c7e8a662549592aad870 (diff)
wlr_scene: Only allow parenting on a wlr_scene_tree
Diffstat (limited to 'examples')
-rw-r--r--examples/scene-graph.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/scene-graph.c b/examples/scene-graph.c
index ac8ea5c3..ba5d2d75 100644
--- a/examples/scene-graph.c
+++ b/examples/scene-graph.c
@@ -122,12 +122,12 @@ static void server_handle_new_surface(struct wl_listener *listener,
wl_signal_add(&wlr_surface->events.destroy, &surface->destroy);
/* Border dimensions will be set in surface.commit handler */
- surface->border = wlr_scene_rect_create(&server->scene->tree.node,
+ surface->border = wlr_scene_rect_create(&server->scene->tree,
0, 0, (float[4]){ 0.5f, 0.5f, 0.5f, 1 });
wlr_scene_node_set_position(&surface->border->node, pos, pos);
surface->scene_surface =
- wlr_scene_surface_create(&server->scene->tree.node, wlr_surface);
+ wlr_scene_surface_create(&server->scene->tree, wlr_surface);
wlr_scene_node_set_position(&surface->scene_surface->buffer->node,
pos + border_width, pos + border_width);