aboutsummaryrefslogtreecommitdiff
path: root/examples/scene-graph.c
diff options
context:
space:
mode:
authorAlexander Orzechowski <orzechowski.alexander@gmail.com>2022-05-30 19:26:08 -0400
committerIsaac Freund <mail@isaacfreund.com>2022-05-31 09:14:28 +0000
commit9eb71146ae56c509ee33c7e8a662549592aad870 (patch)
treebe2f2449bfda720b48f7d9f36f660a1b24c51aa4 /examples/scene-graph.c
parent2563b79dc2c200899316d5659b0dd00ca26460b8 (diff)
wlr_scene: Refactor wlr_scene (the root element) to encase a wlr_scene_tree
Co-authored-by: Isaac Freund <mail@isaacfreund.com>
Diffstat (limited to 'examples/scene-graph.c')
-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 98f98cfd..ac8ea5c3 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->node,
+ surface->border = wlr_scene_rect_create(&server->scene->tree.node,
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->node, wlr_surface);
+ wlr_scene_surface_create(&server->scene->tree.node, wlr_surface);
wlr_scene_node_set_position(&surface->scene_surface->buffer->node,
pos + border_width, pos + border_width);