mirror of
https://github.com/labwc/labwc.git
synced 2025-11-05 13:29:58 -05:00
common: Add znew/znew_n() macros
This commit is contained in:
parent
da57483961
commit
a54d378e6c
26 changed files with 47 additions and 47 deletions
|
|
@ -68,8 +68,7 @@ xdg_popup_create(struct view *view, struct wlr_xdg_popup *wlr_popup)
|
|||
return;
|
||||
}
|
||||
|
||||
struct xdg_popup *popup = xzalloc(sizeof(struct xdg_popup));
|
||||
|
||||
struct xdg_popup *popup = znew(*popup);
|
||||
popup->parent_view = view;
|
||||
popup->wlr_popup = wlr_popup;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue