winex11.drv: Call SetWindowPos with SWP_FRAMECHANGED set when
switching from minimized state in X11DRV_MapNotify
Dmitry Timoshkov
dmitry at codeweavers.com
Wed Nov 8 02:17:19 CST 2006
Hello,
ShowWindow already adds SWP_FRAMECHANGED when switching from Min/Max to
a restored state. Shouldn't we simply call ShowWindow() from X11DRV_MapNotify
to avoid this kind of a bug?
This patch fixes the bug 6630.
Changelog:
winex11.drv: Call SetWindowPos with SWP_FRAMECHANGED set when switching
from minimized state in X11DRV_MapNotify to force non-client metrics
recalculation.
--- a/dlls/winex11.drv/winpos.c 2006-10-27 16:20:26.000000000 +0900
+++ b/dlls/winex11.drv/winpos.c 2006-11-08 16:00:43.000000000 +0800
@@ -1183,7 +1183,7 @@ void X11DRV_MapNotify( HWND hwnd, XEvent
SendMessageW( hwnd, WM_SHOWWINDOW, SW_RESTORE, 0 );
data->lock_changes++;
SetWindowPos( hwnd, 0, rect.left, rect.top, rect.right-rect.left, rect.bottom-rect.top,
- SWP_NOZORDER );
+ SWP_NOZORDER | SWP_FRAMECHANGED );
data->lock_changes--;
}
else WIN_ReleasePtr( win );
More information about the wine-patches
mailing list