From: Laszlo Agocs Date: Mon, 20 Feb 2012 07:42:49 +0000 (+0200) Subject: Send mouse release generated from TouchCancel to the proper window X-Git-Tag: qt-v5.0.0-alpha1~32 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a21846b8ab9d599e8ac35041a702497bdf2288be;p=profile%2Fivi%2Fqtwayland.git Send mouse release generated from TouchCancel to the proper window Change-Id: I3d0ab79eb261de4d22c6aadf0672f5c84ff3533e Reviewed-by: Samuel Rødal --- diff --git a/src/plugins/platforms/wayland/qwaylandtouch.cpp b/src/plugins/platforms/wayland/qwaylandtouch.cpp index f66d467..725aecf 100644 --- a/src/plugins/platforms/wayland/qwaylandtouch.cpp +++ b/src/plugins/platforms/wayland/qwaylandtouch.cpp @@ -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)