diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-04-27 10:45:44 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-27 10:45:44 +0200 |
commit | 60ae98edd89e993a66b98053f68df862e09a5734 (patch) | |
tree | 75137aec10b4b3146430756b6b1126a81c28f900 | |
parent | daa293da9308ef012c2b899a8e35c30a9f4dc233 (diff) | |
parent | 126f12e4288dacd3721541d6eb7aded7fd062d3e (diff) |
Merge pull request #917 from emersion/fix-xdg-positioner-cast
xdg-shell: fix invalid xdg-positioner cast
-rw-r--r-- | types/wlr_xdg_shell.c | 4 |
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; |