From 3a68007693f9d91c3b6dc12a204455df36ae65a1 Mon Sep 17 00:00:00 2001 From: Alexander Orzechowski Date: Mon, 30 May 2022 19:23:27 -0400 Subject: wlr_scene: Only allow parenting on a wlr_scene_tree --- surface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'surface.c') 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) { -- cgit v1.2.3