aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--types/wlr_xdg_shell.c4
1 files 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;