hw/xwin: Move reshape code from winUpdateWindowPosition() to the map event handler
authorJon TURNEY <jon.turney@dronecode.org.uk>
Thu, 10 Jan 2013 14:37:45 +0000 (14:37 +0000)
committerJon TURNEY <jon.turney@dronecode.org.uk>
Wed, 16 Jan 2013 16:49:15 +0000 (16:49 +0000)
commit066ecbd11d516ea68d7ebc7470232d01c5717546
treee6f75ced74efd87f6ca0f88021c452e24d8c583e
parent852d1fb042f4160fe023a015f1c9a34126bf911a
hw/xwin: Move reshape code from winUpdateWindowPosition() to the map event handler

Move reshape code, which was only used when handling a map event, from
winUpdateWindowPosition(), to put it explicitly in the map event handler.

Remove 'reshape' parameter from winUpdatePosition().

(Note that there's no handling of the ShapeNotify event to notice when the
window shape changes, instead we hook the screen SetShape procedure and reshape
the native window then)

Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
Reviewed-by: Colin Harrison <colin.harrison@virgin.net>
hw/xwin/winmultiwindowwm.c
hw/xwin/winmultiwindowwndproc.c