diff options
Diffstat (limited to 'backend/libinput/events.c')
-rw-r--r-- | backend/libinput/events.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/backend/libinput/events.c b/backend/libinput/events.c index 603eed07..7faff92f 100644 --- a/backend/libinput/events.c +++ b/backend/libinput/events.c @@ -6,6 +6,7 @@ #include <wlr/interfaces/wlr_input_device.h> #include <wlr/util/log.h> #include "backend/libinput.h" +#include "util/defs.h" #include "util/signal.h" struct wlr_input_device *get_appropriate_device( @@ -54,6 +55,7 @@ static struct wlr_input_device *allocate_device( return wlr_dev; } +WLR_API bool wlr_input_device_is_libinput(struct wlr_input_device *wlr_dev) { return wlr_dev->impl == &input_device_impl; } |