summaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorRomain Pokrzywka <romain.pokrzywka@kdab.com>2012-07-20 22:36:10 (GMT)
committerQt by Nokia <qt-info@nokia.com>2012-07-29 23:33:53 (GMT)
commita634bbc67699f044d22b6d450f22234397a6715f (patch)
treed1338a3621749f421be9363a0a4c18e601ecdbc1 /src/plugins
parent6b10fc91413095535a0b91f7efe59cf5bfa2b81e (diff)
downloadQt-a634bbc67699f044d22b6d450f22234397a6715f.zip
Qt-a634bbc67699f044d22b6d450f22234397a6715f.tar.gz
Qt-a634bbc67699f044d22b6d450f22234397a6715f.tar.bz2
Fix duplicate mouse event being sent for LinuxInput touch events
This is due to the X and Y messages being received before the TOUCH one, followed by a SYNC message which then creates the second mouseEvent. The event should actually be sent on the SYNC message, so remove the one sent from the TOUCH message handler, just set the posChanged flag. For more details see: http://www.kernel.org/doc/Documentation/input/event-codes.txt Change-Id: I30e71fc3e7da24d8e698467b4d6e0bcd5a64eb37 Reviewed-by: Paul Olav Tvete <paul.tvete@nokia.com> Reviewed-by: Girish Ramakrishnan <girish.1.ramakrishnan@nokia.com>
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/generic/linuxinput/qlinuxinput.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/generic/linuxinput/qlinuxinput.cpp b/src/plugins/generic/linuxinput/qlinuxinput.cpp
index 4e9f6e8..6bb3532 100644
--- a/src/plugins/generic/linuxinput/qlinuxinput.cpp
+++ b/src/plugins/generic/linuxinput/qlinuxinput.cpp
@@ -273,7 +273,7 @@ void QLinuxInputMouseHandler::readMouseData()
} else if (data->type == EV_KEY && data->code == BTN_TOUCH) {
m_buttons = data->value ? Qt::LeftButton : Qt::NoButton;
- sendMouseEvent(m_x, m_y, m_buttons);
+ posChanged = true;
pendingMouseEvent = false;
} else if (data->type == EV_KEY && data->code >= BTN_LEFT && data->code <= BTN_MIDDLE) {
Qt::MouseButton button = Qt::NoButton;