summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.p.agocs@nokia.com>2012-02-20 09:42:49 +0200
committerSamuel Rødal <samuel.rodal@nokia.com>2012-02-20 08:48:39 +0100
commita21846b8ab9d599e8ac35041a702497bdf2288be (patch)
tree9d395c919ca91c4558886a1ae3a9940ec1cf2107
parenta6ba08ef1eeeaac4325ddbc9b4cf214dad32ed1e (diff)
downloadqtwayland-a21846b8ab9d599e8ac35041a702497bdf2288be.tar.gz
Send mouse release generated from TouchCancel to the proper window
Change-Id: I3d0ab79eb261de4d22c6aadf0672f5c84ff3533e Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
-rw-r--r--src/plugins/platforms/wayland/qwaylandtouch.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/platforms/wayland/qwaylandtouch.cpp b/src/plugins/platforms/wayland/qwaylandtouch.cpp
index f66d4671..725aecf4 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)