mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-29 05:40:12 -04:00
backend/wayland: take wl_event_loop instead of wl_display
This commit is contained in:
parent
f5e8fa48f3
commit
ed0bba581b
6 changed files with 16 additions and 17 deletions
|
|
@ -194,7 +194,8 @@ static struct wlr_auto_backend_monitor *auto_backend_monitor_create(
|
|||
}
|
||||
|
||||
static struct wlr_backend *attempt_wl_backend(struct wl_display *display) {
|
||||
struct wlr_backend *backend = wlr_wl_backend_create(display, NULL);
|
||||
struct wl_event_loop *loop = wl_display_get_event_loop(display);
|
||||
struct wlr_backend *backend = wlr_wl_backend_create(loop, NULL);
|
||||
if (backend == NULL) {
|
||||
return NULL;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue