aboutsummaryrefslogtreecommitdiff
path: root/tinywl/tinywl.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 /tinywl/tinywl.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 'tinywl/tinywl.c')
-rw-r--r--tinywl/tinywl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tinywl/tinywl.c b/tinywl/tinywl.c
index d8e171e1..49d33b42 100644
--- a/tinywl/tinywl.c
+++ b/tinywl/tinywl.c
@@ -340,7 +340,7 @@ static struct tinywl_view *desktop_view_at(
* we only care about surface nodes as we are specifically looking for a
* surface in the surface tree of a tinywl_view. */
struct wlr_scene_node *node = wlr_scene_node_at(
- &server->scene->node, lx, ly, sx, sy);
+ &server->scene->tree.node, lx, ly, sx, sy);
if (node == NULL || node->type != WLR_SCENE_NODE_BUFFER) {
return NULL;
}
@@ -760,7 +760,7 @@ static void server_new_xdg_surface(struct wl_listener *listener, void *data) {
view->server = server;
view->xdg_toplevel = xdg_surface->toplevel;
view->scene_node = wlr_scene_xdg_surface_create(
- &view->server->scene->node, view->xdg_toplevel->base);
+ &view->server->scene->tree.node, view->xdg_toplevel->base);
view->scene_node->data = view;
xdg_surface->data = view->scene_node;