summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGabriel de Dietrich <gabriel.dietrich-de@nokia.com>2009-08-14 14:43:14 (GMT)
committerGabriel de Dietrich <gabriel.dietrich-de@nokia.com>2009-08-14 14:50:55 (GMT)
commit533807d5c06be28694665fc889ec1942c59ab705 (patch)
treec372f46bd68576e3ac334062087e5b4893e3921e /src
parenta835ec7dc2d618b9023067e4c6e7c6d122e06c8f (diff)
downloadQt-533807d5c06be28694665fc889ec1942c59ab705.zip
Qt-533807d5c06be28694665fc889ec1942c59ab705.tar.gz
Qt-533807d5c06be28694665fc889ec1942c59ab705.tar.bz2
Fixed Coverity defect CID 1528.
Reviewed-by: Olivier
Diffstat (limited to 'src')
-rw-r--r--src/gui/kernel/qapplication_x11.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/kernel/qapplication_x11.cpp b/src/gui/kernel/qapplication_x11.cpp
index 3b1a581..db349f0 100644
--- a/src/gui/kernel/qapplication_x11.cpp
+++ b/src/gui/kernel/qapplication_x11.cpp
@@ -4579,6 +4579,7 @@ bool QETWidget::translateXinputEvent(const XEvent *ev, QTabletDeviceData *tablet
// Do event compression. Skip over tablet+mouse move events if there are newer ones.
qt_tablet_motion_data tabletMotionData;
tabletMotionData.tabletMotionType = tablet->xinput_motion;
+ XEvent dummy;
while (true) {
// Find first mouse event since we expect them in pairs inside Qt
tabletMotionData.error =false;
@@ -4591,7 +4592,6 @@ bool QETWidget::translateXinputEvent(const XEvent *ev, QTabletDeviceData *tablet
}
// Now discard any duplicate tablet events.
- XEvent dummy;
tabletMotionData.error = false;
tabletMotionData.timestamp = mouseMotionEvent.xmotion.time;
while (XCheckIfEvent(X11->display, &dummy, &qt_tabletMotion_scanner, (XPointer) &tabletMotionData)) {