mirror of
https://github.com/labwc/labwc.git
synced 2025-11-03 09:01:51 -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
|
|
@ -154,7 +154,7 @@ _osd_update(struct server *server)
|
|||
static void
|
||||
add_workspace(struct server *server, const char *name)
|
||||
{
|
||||
struct workspace *workspace = xzalloc(sizeof(struct workspace));
|
||||
struct workspace *workspace = znew(*workspace);
|
||||
workspace->server = server;
|
||||
workspace->name = xstrdup(name);
|
||||
workspace->tree = wlr_scene_tree_create(server->view_tree);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue