Send mouse release generated from TouchCancel to the proper window
authorLaszlo Agocs <laszlo.p.agocs@nokia.com>
Mon, 20 Feb 2012 07:42:49 +0000 (09:42 +0200)
committerSamuel Rødal <samuel.rodal@nokia.com>
Mon, 20 Feb 2012 07:48:39 +0000 (08:48 +0100)
Change-Id: I3d0ab79eb261de4d22c6aadf0672f5c84ff3533e
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
src/plugins/platforms/wayland/qwaylandtouch.cpp

index f66d467..725aecf 100644 (file)
@@ -198,7 +198,7 @@ void QWaylandTouchExtension::touchCanceled()
     mTouchPoints.clear();
     mPrevTouchPoints.clear();
     if (mMouseSourceId != -1)
-        QWindowSystemInterface::handleMouseEvent(0, mTimestamp, mLastMouseLocal, mLastMouseGlobal, Qt::NoButton);
+        QWindowSystemInterface::handleMouseEvent(mTargetWindow, mTimestamp, mLastMouseLocal, mLastMouseGlobal, Qt::NoButton);
 }
 
 void QWaylandTouchExtension::handle_configure(void *data, wl_touch_extension *ext, uint32_t flags)