aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-04-26 15:59:23 +0100
committeremersion <contact@emersion.fr>2018-04-26 15:59:23 +0100
commit874909dca6f58e91b2db4827c9bbc7f356292123 (patch)
tree9097919b530266567aa41b679ad5f53b53b807c7
parentfcb7ad925dafe2d4f1966dede1ce41ad7430c1f1 (diff)
xdg-shell: fix invalid wlr_xdg_positioner alloc
-rw-r--r--types/wlr_xdg_shell.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/types/wlr_xdg_shell.c b/types/wlr_xdg_shell.c
index fce2a1bb..5fd3d33e 100644
--- a/types/wlr_xdg_shell.c
+++ b/types/wlr_xdg_shell.c
@@ -399,7 +399,7 @@ 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_resource));
+ calloc(1, sizeof(struct wlr_xdg_positioner));
if (positioner == NULL) {
wl_client_post_no_memory(wl_client);
return;