From d61ec694b352c0f21c06958c5ef0417f3e424e3c Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Sat, 12 Aug 2023 08:37:08 +0200 Subject: 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. --- include/wlr/interfaces/wlr_output.h | 2 +- include/wlr/types/wlr_output.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/wlr/interfaces/wlr_output.h b/include/wlr/interfaces/wlr_output.h index a5131297..b5123475 100644 --- a/include/wlr/interfaces/wlr_output.h +++ b/include/wlr/interfaces/wlr_output.h @@ -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 diff --git a/include/wlr/types/wlr_output.h b/include/wlr/types/wlr_output.h index e81ba02e..c607ec38 100644 --- a/include/wlr/types/wlr_output.h +++ b/include/wlr/types/wlr_output.h @@ -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; -- cgit v1.2.3