diff options
author | Romain Pokrzywka <romain.pokrzywka@kdab.com> | 2012-07-20 15:36:10 -0700 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-07-30 01:33:53 +0200 |
commit | a634bbc67699f044d22b6d450f22234397a6715f (patch) | |
tree | d1338a3621749f421be9363a0a4c18e601ecdbc1 /src/plugins | |
parent | 6b10fc91413095535a0b91f7efe59cf5bfa2b81e (diff) |
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.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/generic/linuxinput/qlinuxinput.cpp b/src/plugins/generic/linuxinput/qlinuxinput.cpp index 4e9f6e8c93..6bb353213f 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; |