summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRolf Eike Beer <eb@emlix.com>2014-05-15 11:51:18 (GMT)
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-05-15 13:50:09 (GMT)
commit890c11e0eee11f5a2045a8b43d498c2ec63130e1 (patch)
tree03ff8dd0f43809331f474406112c0ec780b1d799 /src
parent45693cc638d10890f2816a38d38de6ddaf04ffd3 (diff)
downloadQt-890c11e0eee11f5a2045a8b43d498c2ec63130e1.zip
Qt-890c11e0eee11f5a2045a8b43d498c2ec63130e1.tar.gz
Qt-890c11e0eee11f5a2045a8b43d498c2ec63130e1.tar.bz2
Tslib QWS: also apply missing release coordinate code to non-raw mode
Even if the normal mode is used the release events may have zero coordinates. Change-Id: Ia9de05928ab5dfc225665e3b2c9a4d42f6ba984e Reviewed-by: Laszlo Agocs <laszlo.agocs@digia.com>
Diffstat (limited to 'src')
-rw-r--r--src/gui/embedded/qmousetslib_qws.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/embedded/qmousetslib_qws.cpp b/src/gui/embedded/qmousetslib_qws.cpp
index 1a276c1..61d5a2f 100644
--- a/src/gui/embedded/qmousetslib_qws.cpp
+++ b/src/gui/embedded/qmousetslib_qws.cpp
@@ -244,8 +244,8 @@ void QWSTslibMouseHandlerPrivate::readMouseData()
pressed = (sample.pressure > 0);
}
- // work around missing coordinates on mouse release in raw mode
- if (!calibrated && !pressed && sample.x == 0 && sample.y == 0) {
+ // work around missing coordinates on mouse release
+ if (!pressed && sample.x == 0 && sample.y == 0) {
sample.x = lastSample.x;
sample.y = lastSample.y;
}