summaryrefslogtreecommitdiff
path: root/surface.c
diff options
context:
space:
mode:
authorAlexander Orzechowski <[email protected]>2022-05-30 19:23:27 -0400
committerIsaac Freund <[email protected]>2022-05-31 09:14:28 +0000
commit3a68007693f9d91c3b6dc12a204455df36ae65a1 (patch)
tree5f94066a759f10ff958f091854ef6ac8a7cbf98f /surface.c
parent6975c82d95080589882b71083f67dc905e5a7f80 (diff)
wlr_scene: Only allow parenting on a wlr_scene_tree
Diffstat (limited to 'surface.c')
-rw-r--r--surface.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/surface.c b/surface.c
index e6a8b6b..d3a0b03 100644
--- a/surface.c
+++ b/surface.c
@@ -135,7 +135,7 @@ struct wlr_scene_surface *wlr_scene_surface_from_buffer(
return surface;
}
-struct wlr_scene_surface *wlr_scene_surface_create(struct wlr_scene_node *parent,
+struct wlr_scene_surface *wlr_scene_surface_create(struct wlr_scene_tree *parent,
struct wlr_surface *wlr_surface) {
struct wlr_scene_surface *surface = calloc(1, sizeof(*surface));
if (surface == NULL) {