x11drv: make minimizing windows work again

Lauri Tulmin lauri_ at ut.ee
Tue Feb 15 06:51:34 CST 2005


changelog:
- make minimized windows stay minimized
-------------- next part --------------
Index: dlls/x11drv/winpos.c
===================================================================
RCS file: /home/wine/wine/dlls/x11drv/winpos.c,v
retrieving revision 1.120
diff -u -p -r1.120 winpos.c
--- dlls/x11drv/winpos.c	9 Feb 2005 14:01:40 -0000	1.120
+++ dlls/x11drv/winpos.c	15 Feb 2005 12:42:13 -0000
@@ -769,7 +769,7 @@ BOOL X11DRV_set_window_pos( HWND hwnd, H
 
         /* FIXME: copy the valid bits */
 
-        if (data->whole_window)
+        if (data->whole_window && !(swp_flags & SWP_WINE_NOHOSTMOVE))
         {
             if ((old_style & WS_VISIBLE) && !(new_style & WS_VISIBLE))
             {
@@ -791,7 +791,7 @@ BOOL X11DRV_set_window_pos( HWND hwnd, H
 
         X11DRV_sync_window_position( display, data, swp_flags, rectClient, &new_whole_rect );
 
-        if (data->whole_window)
+        if (data->whole_window && !(swp_flags & SWP_WINE_NOHOSTMOVE))
         {
             if (!(old_style & WS_VISIBLE) && (new_style & WS_VISIBLE))
             {


More information about the wine-patches mailing list