Need to have the XI2 import to detect XI_TouchBeginMask
authorShawn Rutledge <shawn.rutledge@nokia.com>
Thu, 9 Aug 2012 09:50:01 +0000 (11:50 +0200)
committerQt by Nokia <qt-info@nokia.com>
Thu, 9 Aug 2012 11:17:14 +0000 (13:17 +0200)
Followup to I5c925ae3e191244c7ab9415e4ba2fe49b93dd2af : touch was not
actually working by default.  A major symptom was getting double-clicks
instead of clicks on buttons and such, making it quite hard to
interact with anything.  There are some problems remaining.

Change-Id: I09fa5965036bac242ccc1f4db71f6d912445ca01
Reviewed-by: Laszlo Agocs <laszlo.p.agocs@nokia.com>
src/plugins/platforms/xcb/qxcbconnection.h

index 902ff83..d97db9a 100644 (file)
@@ -60,6 +60,7 @@
 #ifdef XCB_USE_XINPUT2_MAEMO
 struct XInput2MaemoData;
 #elif XCB_USE_XINPUT2
+#include <X11/extensions/XI2.h>
 #ifdef XI_TouchBeginMask
 #define XCB_USE_XINPUT22    // XI 2.2 adds multi-point touch support
 #endif