aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel d'Andrada <daniel.dandrada@luxoft.com>2017-10-24 11:26:23 +0200
committerDominik Holland <dominik.holland@pelagicore.com>2017-10-24 09:52:34 +0000
commitf1b4853a56ad2559d35fbcf667d0ba001c9ea9d0 (patch)
tree807550942f9749c47faa16c079aefe6b9e69ef49
parent10d45b164c022ffc1759c3c9c30df8f726e78d1b (diff)
MouseTouchAdaptor: Define XCB_GE_GENERIC ourselves if not available
Snippet copied from qxcbconnection.cpp in qtbase Change-Id: Ibffdc050283a2a7baf52bdf4967922f432715b1e Reviewed-by: Dominik Holland <dominik.holland@pelagicore.com>
-rw-r--r--src/MouseTouchAdaptor.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/MouseTouchAdaptor.cpp b/src/MouseTouchAdaptor.cpp
index 45f09d9..6cdb741 100644
--- a/src/MouseTouchAdaptor.cpp
+++ b/src/MouseTouchAdaptor.cpp
@@ -41,6 +41,12 @@
#include <X11/extensions/XInput2.h>
#include <X11/extensions/XI2proto.h>
+// this event type was added in libxcb 1.10,
+// but we support also older version
+#ifndef XCB_GE_GENERIC
+#define XCB_GE_GENERIC 35
+#endif
+
Q_LOGGING_CATEGORY(mouseTouchAdaptor, "mousetouchadaptor")
using QTest::QTouchEventSequence;