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 /include | |
parent | f5e8fa48f3cf6dc8522191bb56670503de41fa4c (diff) |
backend/wayland: take wl_event_loop instead of wl_display
Diffstat (limited to 'include')
-rw-r--r-- | include/backend/wayland.h | 4 | ||||
-rw-r--r-- | include/wlr/backend/wayland.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/include/backend/wayland.h b/include/backend/wayland.h index 098d1dc1..f8fb66ba 100644 --- a/include/backend/wayland.h +++ b/include/backend/wayland.h @@ -20,12 +20,12 @@ struct wlr_wl_backend { /* local state */ bool started; - struct wl_display *local_display; + struct wl_event_loop *event_loop; struct wl_list outputs; int drm_fd; struct wl_list buffers; // wlr_wl_buffer.link size_t requested_outputs; - struct wl_listener local_display_destroy; + struct wl_listener event_loop_destroy; char *activation_token; /* remote state */ diff --git a/include/wlr/backend/wayland.h b/include/wlr/backend/wayland.h index a30bac25..f402693a 100644 --- a/include/wlr/backend/wayland.h +++ b/include/wlr/backend/wayland.h @@ -15,7 +15,7 @@ struct wlr_input_device; * The remote_display argument is an existing libwayland-client struct wl_display * to use. Leave it NULL to create a new connection to the compositor. */ -struct wlr_backend *wlr_wl_backend_create(struct wl_display *display, +struct wlr_backend *wlr_wl_backend_create(struct wl_event_loop *loop, struct wl_display *remote_display); /** |