backend/wayland: take wl_event_loop instead of wl_display

This commit is contained in:
Simon Ser 2023-11-23 13:58:36 +01:00 committed by Kirill Primak
parent f5e8fa48f3
commit ed0bba581b
6 changed files with 16 additions and 17 deletions

View file

@ -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;
}