path: root/src/plugins/platforms/xcb/qxcbconnection.h
diff options
authorAllan Sandfeld Jensen <>2014-04-29 12:32:34 +0200
committerThe Qt Project <>2014-05-05 11:30:34 +0200
commitb80f732783e43dc21ddbce4b42d9bb61915a3fb6 (patch)
treefad7ae37cb23b569dece3ce3b89cd453873149d2 /src/plugins/platforms/xcb/qxcbconnection.h
parent3f885939c059605a9324a94e488793455c9cd848 (diff)
Use XI2 event detail to determine changed mouse buttonv5.3.0-rc1
The button state part of the XI2 events appears to be badly constructed on some devices and platforms. Even where supported the 'detail' field of the XI2 events is what we should be reading since it indicates the button the event refers to and not just the state of all buttons. Task-number: QTBUG-38169 Change-Id: Iedb7971194b3c27448b72c285a54100c511c17e4 Reviewed-by: Laszlo Agocs <>
Diffstat (limited to 'src/plugins/platforms/xcb/qxcbconnection.h')
1 files changed, 0 insertions, 1 deletions
diff --git a/src/plugins/platforms/xcb/qxcbconnection.h b/src/plugins/platforms/xcb/qxcbconnection.h
index 1933b89a19..6e511356c4 100644
--- a/src/plugins/platforms/xcb/qxcbconnection.h
+++ b/src/plugins/platforms/xcb/qxcbconnection.h
@@ -532,7 +532,6 @@ private:
#if defined(XCB_USE_XINPUT2) || defined(XCB_USE_XINPUT2_MAEMO)
static bool xi2GetValuatorValueIfSet(void *event, int valuatorNum, double *value);
static bool xi2PrepareXIGenericDeviceEvent(xcb_ge_event_t *event, int opCode);
- static bool xi2GetButtonState(void *event, int buttonNum);
xcb_connection_t *m_connection;