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. --- backend/headless/output.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'backend/headless/output.c') diff --git a/backend/headless/output.c b/backend/headless/output.c index 406959b4..b3ac279e 100644 --- a/backend/headless/output.c +++ b/backend/headless/output.c @@ -119,7 +119,8 @@ struct wlr_output *wlr_headless_add_output(struct wlr_backend *wlr_backend, wlr_output_state_init(&state); wlr_output_state_set_custom_mode(&state, width, height, 0); - wlr_output_init(wlr_output, &backend->backend, &output_impl, backend->display, &state); + wlr_output_init(wlr_output, &backend->backend, &output_impl, + wl_display_get_event_loop(backend->display), &state); wlr_output_state_finish(&state); output_update_refresh(output, 0); -- cgit v1.2.3