aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-04-26 18:53:59 +0100
committeremersion <contact@emersion.fr>2018-04-26 18:53:59 +0100
commit126f12e4288dacd3721541d6eb7aded7fd062d3e (patch)
tree75137aec10b4b3146430756b6b1126a81c28f900
parentdaa293da9308ef012c2b899a8e35c30a9f4dc233 (diff)
xdg-shell: fix invalid xdg-positioner cast
-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;