From ed0bba581bdf0dd24e48de69ef51cf2420a50289 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Thu, 23 Nov 2023 13:58:36 +0100 Subject: backend/wayland: take wl_event_loop instead of wl_display --- examples/embedded.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'examples') diff --git a/examples/embedded.c b/examples/embedded.c index 1e52e892..7b33d839 100644 --- a/examples/embedded.c +++ b/examples/embedded.c @@ -159,7 +159,8 @@ int main(int argc, char *argv[]) { init_egl(remote_display); struct wl_display *local_display = wl_display_create(); - struct wlr_backend *backend = wlr_wl_backend_create(local_display, remote_display); + struct wl_event_loop *event_loop = wl_display_get_event_loop(local_display); + struct wlr_backend *backend = wlr_wl_backend_create(event_loop, remote_display); struct wlr_renderer *renderer = wlr_renderer_autocreate(backend); wlr_renderer_init_wl_display(renderer, local_display); struct wlr_allocator *allocator = wlr_allocator_autocreate(backend, renderer); -- cgit v1.2.3