aboutsummaryrefslogtreecommitdiff
path: root/backend/multi/backend.c
diff options
context:
space:
mode:
Diffstat (limited to 'backend/multi/backend.c')
-rw-r--r--backend/multi/backend.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/backend/multi/backend.c b/backend/multi/backend.c
index 49792ff9..1ee21c14 100644
--- a/backend/multi/backend.c
+++ b/backend/multi/backend.c
@@ -21,7 +21,8 @@ struct subbackend_state {
static struct wlr_multi_backend *multi_backend_from_backend(
struct wlr_backend *wlr_backend) {
assert(wlr_backend_is_multi(wlr_backend));
- return (struct wlr_multi_backend *)wlr_backend;
+ struct wlr_multi_backend *backend = wl_container_of(wlr_backend, backend, backend);
+ return backend;
}
static bool multi_backend_start(struct wlr_backend *wlr_backend) {