[PATCH] user32: should restore owned window when restoring owner window.
Jiang Biao
jiang.biao2 at zte.com.cn
Fri Jul 14 04:24:06 CDT 2017
According to the description in MSDN, owned window should be
restored when restoring the owner window. And if a Windows app
directly uses ShowWindow to restore a owner window, its owned
window will not be restored. In that case, for some apps(such
as EDiary), their owned windows could not be restored after being
minimized.
Signed-off-by: Jiang Biao <jiang.biao2 at zte.com.cn>
Signed-off-by: Shi ZhongBing <shi.zhongbing at zte.com.cn>
---
dlls/user32/winpos.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/dlls/user32/winpos.c b/dlls/user32/winpos.c
index a9f3d9e..33c3cf5 100644
--- a/dlls/user32/winpos.c
+++ b/dlls/user32/winpos.c
@@ -1012,6 +1012,8 @@ UINT WINPOS_MinMaximize( HWND hwnd, UINT cmd, LPRECT rect )
/* fall through */
case SW_SHOWNORMAL:
case SW_RESTORE:
+ if (hwnd == GetActiveWindow())
+ ShowOwnedPopups(hwnd, TRUE);
case SW_SHOWDEFAULT: /* FIXME: should have its own handler */
old_style = WIN_SetStyle( hwnd, 0, WS_MINIMIZE | WS_MAXIMIZE );
if (old_style & WS_MINIMIZE)
--
2.7.4
More information about the wine-patches
mailing list