mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-02 09:01:38 -05:00
parent
5ca88af557
commit
5cc7342606
13 changed files with 109 additions and 13 deletions
|
|
@ -115,7 +115,11 @@ void wlr_multi_backend_add(struct wlr_backend *_multi,
|
|||
assert(wlr_backend_is_multi(_multi));
|
||||
|
||||
struct wlr_multi_backend *multi = (struct wlr_multi_backend *)_multi;
|
||||
struct subbackend_state *sub = calloc(1, sizeof(struct subbackend_state));
|
||||
struct subbackend_state *sub;
|
||||
if (!(sub = calloc(1, sizeof(struct subbackend_state)))) {
|
||||
wlr_log(L_ERROR, "Could not add backend: allocation failed");
|
||||
return;
|
||||
}
|
||||
sub->backend = backend;
|
||||
sub->container = &multi->backend;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue