From 126f12e4288dacd3721541d6eb7aded7fd062d3e Mon Sep 17 00:00:00 2001 From: emersion Date: Thu, 26 Apr 2018 18:53:59 +0100 Subject: [PATCH] xdg-shell: fix invalid xdg-positioner cast --- types/wlr_xdg_shell.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/wlr_xdg_shell.c b/types/wlr_xdg_shell.c index 5fd3d33e..cd612e30 100644 --- a/types/wlr_xdg_shell.c +++ b/types/wlr_xdg_shell.c @@ -398,8 +398,8 @@ static const struct xdg_positioner_interface static void xdg_shell_handle_create_positioner(struct wl_client *wl_client, struct wl_resource *resource, uint32_t id) { - struct wlr_xdg_positioner *positioner = - calloc(1, sizeof(struct wlr_xdg_positioner)); + struct wlr_xdg_positioner_resource *positioner = + calloc(1, sizeof(struct wlr_xdg_positioner_resource)); if (positioner == NULL) { wl_client_post_no_memory(wl_client); return;