summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/xcb/qxcbconnection_xi2.cpp
diff options
context:
space:
mode:
authorAlexander Volkov <a.volkov@rusbitech.ru>2017-02-22 14:06:51 +0300
committerAlexander Volkov <a.volkov@rusbitech.ru>2017-06-29 14:09:33 +0000
commit6dd61b4e62d9b67a721bbf671b7ffd62c0a50809 (patch)
treefd050c3ee90c68a4b1e3d4cc4fed8d39a120dc47 /src/plugins/platforms/xcb/qxcbconnection_xi2.cpp
parent5cc5c97554c1e0010f3d2e0ab379a68743b66b53 (diff)
xcb: Replace XCB_USE_XINPUT define by QT_CONFIG macro
.. and remove it from qxcbconnection_xi2.cpp as this file is build _only_ when xinput2 is available. Change-Id: I66d6a299c120fc034f8519cd188e1b845d5bd1bc Reviewed-by: Gatis Paeglis <gatis.paeglis@qt.io>
Diffstat (limited to 'src/plugins/platforms/xcb/qxcbconnection_xi2.cpp')
-rw-r--r--src/plugins/platforms/xcb/qxcbconnection_xi2.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/plugins/platforms/xcb/qxcbconnection_xi2.cpp b/src/plugins/platforms/xcb/qxcbconnection_xi2.cpp
index 52873f0910..4d2a83b3cf 100644
--- a/src/plugins/platforms/xcb/qxcbconnection_xi2.cpp
+++ b/src/plugins/platforms/xcb/qxcbconnection_xi2.cpp
@@ -47,8 +47,6 @@
#include <QDebug>
#include <cmath>
-#ifdef XCB_USE_XINPUT2
-
#include <X11/extensions/XInput2.h>
#include <X11/extensions/XI2proto.h>
@@ -698,10 +696,8 @@ void QXcbConnection::xi2ProcessTouch(void *xiDevEvent, QXcbWindow *platformWindo
if (m_xiGrab) {
// XIAllowTouchEvents deadlocks with libXi < 1.7.4 (this has nothing to do with the XI2 versions like 2.2)
// http://lists.x.org/archives/xorg-devel/2014-July/043059.html
-#ifdef XCB_USE_XINPUT2
XIAllowTouchEvents(static_cast<Display *>(m_xlib_display), xiDeviceEvent->deviceid,
xiDeviceEvent->detail, xiDeviceEvent->event, XIAcceptTouch);
-#endif
}
break;
case XI_TouchUpdate:
@@ -1241,5 +1237,3 @@ QXcbConnection::TabletData *QXcbConnection::tabletDataForDevice(int id)
}
#endif // QT_CONFIG(tabletevent)
-
-#endif // XCB_USE_XINPUT2