output: take wl_event_loop in wlr_output_init()

We don't need the whole wl_display here anymore. The wl_event_loop
is enough.
This commit is contained in:
Simon Ser 2023-08-12 08:37:08 +02:00 committed by Isaac Freund
parent d23d8ed3ba
commit d61ec694b3
8 changed files with 17 additions and 18 deletions

View file

@ -101,7 +101,7 @@ struct wlr_output_impl {
* Initialize a new output.
*/
void wlr_output_init(struct wlr_output *output, struct wlr_backend *backend,
const struct wlr_output_impl *impl, struct wl_display *display,
const struct wlr_output_impl *impl, struct wl_event_loop *event_loop,
const struct wlr_output_state *state);
/**
* Notify compositors that they need to submit a new frame in order to apply

View file

@ -127,7 +127,7 @@ struct wlr_render_pass;
struct wlr_output {
const struct wlr_output_impl *impl;
struct wlr_backend *backend;
struct wl_display *display;
struct wl_event_loop *event_loop;
struct wl_global *global;
struct wl_list resources;