winex11.drv: Fix the regression caused by a previous change
Dmitry Timoshkov
dmitry at codeweavers.com
Sat Dec 30 08:03:36 CST 2006
Hello,
this patch fixes the regression reported in the bug #6977.
Changelog:
winex11.drv: Fix the regression caused by a previous change.
---
dlls/winex11.drv/winpos.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/winex11.drv/winpos.c b/dlls/winex11.drv/winpos.c
index 3c41b65..317500d 100644
--- a/dlls/winex11.drv/winpos.c
+++ b/dlls/winex11.drv/winpos.c
@@ -623,6 +623,7 @@ BOOL X11DRV_ShowWindow( HWND hwnd, INT cmd )
/* fall through */
case SW_SHOWNORMAL: /* same as SW_NORMAL: */
case SW_SHOWDEFAULT: /* FIXME: should have its own handler */
+ if (!wasVisible) swp |= SWP_SHOWWINDOW;
if (style & (WS_MINIMIZE | WS_MAXIMIZE))
{
swp |= SWP_FRAMECHANGED;
@@ -630,7 +631,6 @@ BOOL X11DRV_ShowWindow( HWND hwnd, INT cmd )
}
else
{
- if (!wasVisible) swp |= SWP_SHOWWINDOW;
swp |= SWP_NOSIZE | SWP_NOMOVE;
}
if (style & WS_CHILD && !(swp & SWP_STATECHANGED)) swp |= SWP_NOACTIVATE | SWP_NOZORDER;
--
1.4.4.2
More information about the wine-patches
mailing list