Fix wrong local positions in mouse events when no tlw was given
authorLaszlo Agocs <laszlo.p.agocs@nokia.com>
Wed, 23 May 2012 12:38:22 +0000 (15:38 +0300)
committerQt by Nokia <qt-info@nokia.com>
Wed, 23 May 2012 17:22:34 +0000 (19:22 +0200)
commitcd8ff4fa8f19ebd4a4048e7c55b386d66a835ee9
treeec153fcdec2343ce31151bf92b66902650899003
parentb5a11a7be5ca30405d4bb7125fe56c121bf0acf8
Fix wrong local positions in mouse events when no tlw was given

Calling handleMouseEvent() with w == 0 implies that the local position
is bogus and instead it should be calculated from the global position
once the target window is known.

Change-Id: If173d0570f6dcc8b7bc5d6f21fa1f69d06d9d702
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
Reviewed-by: Paul Olav Tvete <paul.tvete@nokia.com>
src/gui/kernel/qguiapplication.cpp
src/gui/kernel/qwindowsysteminterface_qpa.cpp
tests/auto/gui/kernel/qwindow/tst_qwindow.cpp