aboutsummaryrefslogtreecommitdiff
path: root/backend/x11/backend.c
diff options
context:
space:
mode:
Diffstat (limited to 'backend/x11/backend.c')
-rw-r--r--backend/x11/backend.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/backend/x11/backend.c b/backend/x11/backend.c
index 51cb5ca4..fcaab618 100644
--- a/backend/x11/backend.c
+++ b/backend/x11/backend.c
@@ -154,7 +154,8 @@ static int x11_event(int fd, uint32_t mask, void *data) {
struct wlr_x11_backend *get_x11_backend_from_backend(
struct wlr_backend *wlr_backend) {
assert(wlr_backend_is_x11(wlr_backend));
- return (struct wlr_x11_backend *)wlr_backend;
+ struct wlr_x11_backend *backend = wl_container_of(wlr_backend, backend, backend);
+ return backend;
}
static bool backend_start(struct wlr_backend *backend) {