[PATCH v2 2/2] user32: Activate another window upon minimizing.

Zebediah Figura zfigura at codeweavers.com
Tue Jul 11 12:15:06 CDT 2017


Signed-off-by: Zebediah Figura <zfigura at codeweavers.com>
---
 dlls/user32/tests/win.c | 1 -
 dlls/user32/winpos.c    | 2 +-
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/dlls/user32/tests/win.c b/dlls/user32/tests/win.c
index 4f30fe31038..21a7ecde421 100644
--- a/dlls/user32/tests/win.c
+++ b/dlls/user32/tests/win.c
@@ -9934,7 +9934,6 @@ static void test_minimize_window(HWND hwndMain)
 
     /* test hiding two normal windows */
     ShowWindow(hwnd2, SW_MINIMIZE);
-    todo_wine
     check_active_state(hwnd, hwnd, hwnd);
 
     ShowWindow(hwnd, SW_MINIMIZE);
diff --git a/dlls/user32/winpos.c b/dlls/user32/winpos.c
index a9f3d9e2638..19be67d1155 100644
--- a/dlls/user32/winpos.c
+++ b/dlls/user32/winpos.c
@@ -1139,7 +1139,7 @@ static BOOL show_window( HWND hwnd, INT cmd )
         SetWindowPos( hwnd, HWND_TOP, newPos.left, newPos.top,
                       newPos.right - newPos.left, newPos.bottom - newPos.top, swp );
 
-    if (cmd == SW_HIDE)
+    if (cmd == SW_HIDE || cmd == SW_MINIMIZE)
     {
         HWND hFocus;
 
-- 
2.13.2




More information about the wine-patches mailing list