From e6ad67911bffcd804549bd1812a77a305cc14eb4 Mon Sep 17 00:00:00 2001 From: Dominique Martinet Date: Mon, 14 Aug 2017 14:54:53 +0200 Subject: Refactor out wlr_input_device_state --- backend/libinput/backend.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'backend/libinput/backend.c') diff --git a/backend/libinput/backend.c b/backend/libinput/backend.c index 18e4826c..a8f43fbc 100644 --- a/backend/libinput/backend.c +++ b/backend/libinput/backend.c @@ -151,6 +151,7 @@ error_backend: return NULL; } -struct libinput_device *wlr_libinput_get_device_handle(struct wlr_input_device *dev) { - return dev->state->handle; +struct libinput_device *wlr_libinput_get_device_handle(struct wlr_input_device *_dev) { + struct wlr_libinput_input_device *dev = (struct wlr_libinput_input_device *)_dev; + return dev->handle; } -- cgit v1.2.3