diff options
Diffstat (limited to 'backend/libinput')
-rw-r--r-- | backend/libinput/backend.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/backend/libinput/backend.c b/backend/libinput/backend.c index 688fae5d..e95127bd 100644 --- a/backend/libinput/backend.c +++ b/backend/libinput/backend.c @@ -11,7 +11,8 @@ static struct wlr_libinput_backend *get_libinput_backend_from_backend( struct wlr_backend *wlr_backend) { assert(wlr_backend_is_libinput(wlr_backend)); - return (struct wlr_libinput_backend *)wlr_backend; + struct wlr_libinput_backend *backend = wl_container_of(wlr_backend, backend, backend); + return backend; } static int libinput_open_restricted(const char *path, |