From 4c9c0c51433d8fea6cd3fc8bd6a4e51031863a3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Fri, 6 May 2016 09:34:20 +0200 Subject: [PATCH] [libinput] Try to fix build on build.kde.org Apparently libinput is too old and LIBINPUT_DEVICE_CAP_TABLET_TOOL is not yet available. As we don't use it yet, it's put into the #if 0 part for future use. --- libinput/device.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libinput/device.cpp b/libinput/device.cpp index 26e4f860a5..34d2b3055a 100644 --- a/libinput/device.cpp +++ b/libinput/device.cpp @@ -58,11 +58,12 @@ Device::Device(libinput_device *device, QObject *parent) , m_keyboard(libinput_device_has_capability(m_device, LIBINPUT_DEVICE_CAP_KEYBOARD)) , m_pointer(libinput_device_has_capability(m_device, LIBINPUT_DEVICE_CAP_POINTER)) , m_touch(libinput_device_has_capability(m_device, LIBINPUT_DEVICE_CAP_TOUCH)) - , m_tabletTool(libinput_device_has_capability(m_device, LIBINPUT_DEVICE_CAP_TABLET_TOOL)) #if 0 // next libinput version + , m_tabletTool(libinput_device_has_capability(m_device, LIBINPUT_DEVICE_CAP_TABLET_TOOL)) , m_tabletPad(libinput_device_has_capability(m_device, LIBINPUT_DEVICE_CAP_TABLET_PAD)) #else + , m_tabletTool(false) , m_tabletPad(false) #endif , m_supportsGesture(libinput_device_has_capability(m_device, LIBINPUT_DEVICE_CAP_GESTURE))