backend: take wl_event_loop instead of wl_display in wlr_backend_autocreate()

This commit is contained in:
Simon Ser 2023-11-23 14:17:39 +01:00 committed by Kirill Primak
parent f27808b8d9
commit d1b39b5843
13 changed files with 28 additions and 35 deletions

View file

@ -275,7 +275,7 @@ int main(int argc, char *argv[]) {
state.layout = wlr_output_layout_create(display);
clock_gettime(CLOCK_MONOTONIC, &state.ts_last);
struct wlr_backend *wlr = wlr_backend_autocreate(display, NULL);
struct wlr_backend *wlr = wlr_backend_autocreate(wl_display_get_event_loop(display), NULL);
if (!wlr) {
exit(1);
}