mirror of
https://github.com/labwc/labwc.git
synced 2025-11-04 13:30:07 -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
|
|
@ -375,7 +375,7 @@ xdg_surface_new(struct wl_listener *listener, void *data)
|
|||
|
||||
wlr_xdg_surface_ping(xdg_surface);
|
||||
|
||||
struct view *view = xzalloc(sizeof(struct view));
|
||||
struct view *view = znew(*view);
|
||||
view->server = server;
|
||||
view->type = LAB_XDG_SHELL_VIEW;
|
||||
view->impl = &xdg_toplevel_view_impl;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue