diff options
Diffstat (limited to 'backend/headless/backend.c')
-rw-r--r-- | backend/headless/backend.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/backend/headless/backend.c b/backend/headless/backend.c index df14d6af..f0cde0c7 100644 --- a/backend/headless/backend.c +++ b/backend/headless/backend.c @@ -7,7 +7,8 @@ struct wlr_headless_backend *headless_backend_from_backend( struct wlr_backend *wlr_backend) { assert(wlr_backend_is_headless(wlr_backend)); - return (struct wlr_headless_backend *)wlr_backend; + struct wlr_headless_backend *backend = wl_container_of(wlr_backend, backend, backend); + return backend; } static bool backend_start(struct wlr_backend *wlr_backend) { |