[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.
This commit is contained in:
parent
4d7134f6c7
commit
4c9c0c5143
1 changed files with 2 additions and 1 deletions
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue