mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-29 05:40:12 -04:00
backend/multi: take wl_event_loop instead of wl_display
This commit is contained in:
parent
54f9944b48
commit
f27808b8d9
4 changed files with 10 additions and 9 deletions
|
|
@ -344,7 +344,8 @@ struct wlr_backend *wlr_backend_autocreate(struct wl_display *display,
|
|||
}
|
||||
|
||||
struct wlr_session *session = NULL;
|
||||
struct wlr_backend *multi = wlr_multi_backend_create(display);
|
||||
struct wl_event_loop *loop = wl_display_get_event_loop(display);
|
||||
struct wlr_backend *multi = wlr_multi_backend_create(loop);
|
||||
if (!multi) {
|
||||
wlr_log(WLR_ERROR, "could not allocate multibackend");
|
||||
return NULL;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue