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 --- include/backend/libinput.h | 5 ++++- include/backend/wayland.h | 5 +++-- 2 files changed, 7 insertions(+), 3 deletions(-) (limited to 'include/backend') diff --git a/include/backend/libinput.h b/include/backend/libinput.h index 3ff714c2..e0f762a7 100644 --- a/include/backend/libinput.h +++ b/include/backend/libinput.h @@ -2,6 +2,7 @@ #define _WLR_BACKEND_LIBINPUT_INTERNAL_H #include #include +#include #include #include #include @@ -22,7 +23,9 @@ struct wlr_libinput_backend { list_t *wlr_device_lists; }; -struct wlr_input_device_state { +struct wlr_libinput_input_device { + struct wlr_input_device wlr_input_device; + struct libinput_device *handle; }; diff --git a/include/backend/wayland.h b/include/backend/wayland.h index da4465fa..6d4b0138 100644 --- a/include/backend/wayland.h +++ b/include/backend/wayland.h @@ -41,9 +41,10 @@ struct wlr_wl_backend_output { void *egl_surface; }; -struct wlr_input_device_state { +struct wlr_wl_input_device { + struct wlr_input_device wlr_input_device; + struct wlr_wl_backend *backend; - struct wlr_input_device *wlr_device; void *resource; }; -- cgit v1.2.3