mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-12 16:35:58 +01:00
xdg-shell: fix invalid wlr_xdg_positioner alloc
This commit is contained in:
parent
fcb7ad925d
commit
874909dca6
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue