Alexandre Julliard : winex11: Retrieve the current window placement in MapNotify before modifying it.

Alexandre Julliard julliard at winehq.org
Wed Mar 5 06:24:14 CST 2008


Module: wine
Branch: master
Commit: 6f14ba738706383c01a749ca3c8d72d1351ed583
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=6f14ba738706383c01a749ca3c8d72d1351ed583

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Wed Mar  5 11:25:27 2008 +0100

winex11: Retrieve the current window placement in MapNotify before modifying it.

---

 dlls/winex11.drv/winpos.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/dlls/winex11.drv/winpos.c b/dlls/winex11.drv/winpos.c
index eb96a82..b2f7a3f 100644
--- a/dlls/winex11.drv/winpos.c
+++ b/dlls/winex11.drv/winpos.c
@@ -480,6 +480,7 @@ void X11DRV_MapNotify( HWND hwnd, XEvent *event )
         X11DRV_X_to_window_rect( data, &rect );
 
         wp.length = sizeof(wp);
+        GetWindowPlacement( hwnd, &wp );
         wp.flags = 0;
         wp.showCmd = SW_RESTORE;
         wp.rcNormalPosition = rect;




More information about the wine-cvs mailing list