#4: ShowWindow should not optimize SW_HIDE, it's the job of SetWindowPos

Dmitry Timoshkov dmitry at baikal.ru
Thu Apr 1 08:41:55 CST 2004


Hello,

SW_SHOWxxx cases are not optimized, tests show that SW_HIDE should not be
optimized either.

Please apply after #3.

Changelog:
    Dmitry Timoshkov <dmitry at codeweavers.com>
    ShowWindow should not optimize SW_HIDE, it's the job of SetWindowPos.

--- cvs/hq/wine/dlls/x11drv/winpos.c	2004-04-01 22:49:01.000000000 +0900
+++ wine/dlls/x11drv/winpos.c	2004-04-01 22:51:08.000000000 +0900
@@ -1280,7 +1280,6 @@ BOOL X11DRV_ShowWindow( HWND hwnd, INT c
     switch(cmd)
     {
         case SW_HIDE:
-            if (!wasVisible) goto END;
 	    swp |= SWP_HIDEWINDOW | SWP_NOSIZE | SWP_NOMOVE |
 		        SWP_NOACTIVATE | SWP_NOZORDER;
 	    break;






More information about the wine-patches mailing list