mirror of
https://github.com/labwc/labwc.git
synced 2026-03-14 05:33:52 -04: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
|
|
@ -44,7 +44,7 @@ xdg_toplevel_decoration(struct wl_listener *listener, void *data)
|
|||
struct server *server =
|
||||
wl_container_of(listener, server, xdg_toplevel_decoration);
|
||||
struct wlr_xdg_toplevel_decoration_v1 *wlr_decoration = data;
|
||||
struct xdg_deco *xdg_deco = xzalloc(sizeof(struct xdg_deco));
|
||||
struct xdg_deco *xdg_deco = znew(*xdg_deco);
|
||||
xdg_deco->wlr_decoration = wlr_decoration;
|
||||
xdg_deco->server = server;
|
||||
xdg_deco->view = wlr_decoration->surface->data;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue