diff options
author | Simon Ser <contact@emersion.fr> | 2023-11-23 13:58:36 +0100 |
---|---|---|
committer | Kirill Primak <vyivel@eclair.cafe> | 2024-01-25 15:05:36 +0000 |
commit | ed0bba581bdf0dd24e48de69ef51cf2420a50289 (patch) | |
tree | 2bdc2979226d99283aa6ad821fc1fe5dc87ce7dc /examples | |
parent | f5e8fa48f3cf6dc8522191bb56670503de41fa4c (diff) |
backend/wayland: take wl_event_loop instead of wl_display
Diffstat (limited to 'examples')
-rw-r--r-- | examples/embedded.c | 3 |
1 files changed, 2 insertions, 1 deletions
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); |