mirror of
https://github.com/labwc/labwc.git
synced 2025-11-06 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
|
|
@ -109,7 +109,7 @@ mousebind_create(const char *context)
|
|||
wlr_log(WLR_ERROR, "mousebind context not specified");
|
||||
return NULL;
|
||||
}
|
||||
struct mousebind *m = xzalloc(sizeof(struct mousebind));
|
||||
struct mousebind *m = znew(*m);
|
||||
m->context = context_from_str(context);
|
||||
if (m->context != LAB_SSD_NONE) {
|
||||
wl_list_insert(rc.mousebinds.prev, &m->link);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue