aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorAlexander Orzechowski <orzechowski.alexander@gmail.com>2022-05-19 14:26:50 -0400
committerAlexander Orzechowski <orzechowski.alexander@gmail.com>2022-05-19 14:26:50 -0400
commitdc9bc5683ad3427afddc04afb383dd56723b9016 (patch)
treebc7e766d8652c241ab62684baa22c33b94660b24 /examples
parent5f43e1732a5933513790ebe306607a89bc9c0ad9 (diff)
wlr_scene: Refactor wlr_scene_surface to be a helper on top of wlr_scene_buffer
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 f57ef1f2..98f98cfd 100644
--- a/examples/scene-graph.c
+++ b/examples/scene-graph.c
@@ -99,7 +99,7 @@ static void surface_handle_commit(struct wl_listener *listener, void *data) {
static void surface_handle_destroy(struct wl_listener *listener, void *data) {
struct surface *surface = wl_container_of(listener, surface, destroy);
- wlr_scene_node_destroy(&surface->scene_surface->node);
+ wlr_scene_node_destroy(&surface->scene_surface->buffer->node);
wlr_scene_node_destroy(&surface->border->node);
wl_list_remove(&surface->destroy.link);
wl_list_remove(&surface->link);
@@ -129,7 +129,7 @@ static void server_handle_new_surface(struct wl_listener *listener,
surface->scene_surface =
wlr_scene_surface_create(&server->scene->node, wlr_surface);
- wlr_scene_node_set_position(&surface->scene_surface->node,
+ wlr_scene_node_set_position(&surface->scene_surface->buffer->node,
pos + border_width, pos + border_width);
}