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

@ -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 */

View file

@ -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);
/**