summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.p.agocs@nokia.com>2012-06-18 16:56:52 +0300
committerLaszlo Agocs <laszlo.p.agocs@nokia.com>2012-06-18 21:51:56 +0200
commit463fb9eb207db8c44fe878d72c29c858a85e7748 (patch)
treedd2534eadec248e8801753df2146815fc6c6ef84 /src
parent18d2ad0842c599218c8b897b817f360e8e250477 (diff)
Fix global coordinate translation in clients
Widget apps had certain components, like context menus, popping up at somewhat off positions. This was caused by a local-global mismatch. Change-Id: Ia87be2419b4686c54852eb87640079ab262146cc Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
Diffstat (limited to 'src')
-rw-r--r--src/plugins/platforms/wayland/qwaylandwindow.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/platforms/wayland/qwaylandwindow.cpp b/src/plugins/platforms/wayland/qwaylandwindow.cpp
index f90e3f500..0d60a6b73 100644
--- a/src/plugins/platforms/wayland/qwaylandwindow.cpp
+++ b/src/plugins/platforms/wayland/qwaylandwindow.cpp
@@ -370,8 +370,8 @@ void QWaylandWindow::handleMouseEventWithDecoration(QWaylandInputDevice *inputDe
QPointF globalTranslated = global;
localTranslated.setX(localTranslated.x() - marg.left());
localTranslated.setY(localTranslated.y() - marg.top());
- globalTranslated.setX(localTranslated.x() - marg.left());
- globalTranslated.setY(localTranslated.y() - marg.top());
+ globalTranslated.setX(globalTranslated.x() - marg.left());
+ globalTranslated.setY(globalTranslated.y() - marg.top());
if (!mMouseEventsInContentArea) {
mWindowDecoration->restoreMouseCursor();
QWindowSystemInterface::handleEnterEvent(window());