From 682dbf36e53a36b09a2cc37ef6bdaf21fa8d35b5 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Thu, 23 Nov 2023 13:42:11 +0100 Subject: backend/headless: take wl_event_loop instead of wl_display --- include/backend/headless.h | 4 ++-- include/wlr/backend/headless.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/backend/headless.h b/include/backend/headless.h index 4c71fb60..21df86ea 100644 --- a/include/backend/headless.h +++ b/include/backend/headless.h @@ -8,9 +8,9 @@ struct wlr_headless_backend { struct wlr_backend backend; - struct wl_display *display; + struct wl_event_loop *event_loop; struct wl_list outputs; - struct wl_listener display_destroy; + struct wl_listener event_loop_destroy; bool started; }; diff --git a/include/wlr/backend/headless.h b/include/wlr/backend/headless.h index 2516f3a6..126f1ff2 100644 --- a/include/wlr/backend/headless.h +++ b/include/wlr/backend/headless.h @@ -16,7 +16,7 @@ * Creates a headless backend. A headless backend has no outputs or inputs by * default. */ -struct wlr_backend *wlr_headless_backend_create(struct wl_display *display); +struct wlr_backend *wlr_headless_backend_create(struct wl_event_loop *loop); /** * Create a new headless output. * -- cgit v1.2.3