Position windows with transient parents properly
authorLaszlo Agocs <laszlo.p.agocs@nokia.com>
Sat, 19 May 2012 10:24:10 +0000 (13:24 +0300)
committerJørgen Lind <jorgen.lind@nokia.com>
Mon, 21 May 2012 06:40:52 +0000 (08:40 +0200)
commit2fb8d34aeab6e979a404f5b2262e9040bd8ce4cf
tree86cc1834b16d3716872e02904f86c370ddc31e34
parent0865b32ead803234158fac199f875d348e209104
Position windows with transient parents properly

Both the transient position calculation and the global mouse
position had to be fixed.

Combo box contents, menus, etc. will now all appear at the
correct position. With qwindow-compositor they will
keep the proper position even when the parent is moved
via the decoration. Not sure how this could be achieved
with weston as there is no notification when the window
is dragged with Super+Mouse. Nevertheless the initial
position will be correct.

Change-Id: I66eca9faa930af71b9b540018d5057af7f5f22e5
Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
src/plugins/platforms/wayland/qwaylandinputdevice.cpp
src/plugins/platforms/wayland/qwaylandshellsurface.cpp
src/plugins/platforms/wayland/qwaylandwindow.cpp