diff options
author | Laszlo Agocs <laszlo.p.agocs@nokia.com> | 2012-02-20 09:42:49 +0200 |
---|---|---|
committer | Samuel Rødal <samuel.rodal@nokia.com> | 2012-02-20 08:48:39 +0100 |
commit | a21846b8ab9d599e8ac35041a702497bdf2288be (patch) | |
tree | 9d395c919ca91c4558886a1ae3a9940ec1cf2107 /src | |
parent | a6ba08ef1eeeaac4325ddbc9b4cf214dad32ed1e (diff) |
Send mouse release generated from TouchCancel to the proper window
Change-Id: I3d0ab79eb261de4d22c6aadf0672f5c84ff3533e
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/platforms/wayland/qwaylandtouch.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/platforms/wayland/qwaylandtouch.cpp b/src/plugins/platforms/wayland/qwaylandtouch.cpp index f66d46711..725aecf49 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) |