mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-04-18 06:47:31 -04:00
backend: add wlr_backend.event_loop
Many objects depending on wlr_backend need access to the event loop. Storing it here will simplify wlr_output when combined with [1], and will allow wlr_renderer_autocreate() to have access to the event loop. [1]: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4310
This commit is contained in:
parent
d3a339a03e
commit
3b3640dda4
9 changed files with 10 additions and 8 deletions
|
|
@ -400,7 +400,7 @@ struct wlr_backend *wlr_x11_backend_create(struct wl_display *display,
|
|||
return NULL;
|
||||
}
|
||||
|
||||
wlr_backend_init(&x11->backend, &backend_impl);
|
||||
wlr_backend_init(&x11->backend, &backend_impl, wl_display_get_event_loop(display));
|
||||
x11->wl_display = display;
|
||||
wl_list_init(&x11->outputs);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue