From f6070d0925aac48c0855fa961a349d0ba3bac045 Mon Sep 17 00:00:00 2001
From: Anatoly Lyutin <vostok@etersoft.ru>
Date: Wed, 13 Aug 2008 18:06:32 +0400
Subject: [PATCH] Fix bug with last swithed window (found by Vika)

---
 dlls/user32/mdi.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/user32/mdi.c b/dlls/user32/mdi.c
index ac5ff15..4cb9573 100644
--- a/dlls/user32/mdi.c
+++ b/dlls/user32/mdi.c
@@ -552,7 +552,7 @@ static void MDI_SwitchActiveChild( MDICLIENTINFO *ci, HWND hwndTo, BOOL activate
                 HWND    client = GetParent(hwndTo);
 
                 SetWindowLongW( hwndPrev, GWL_STYLE, GetWindowLongW( hwndPrev, GWL_STYLE )&~WS_MAXIMIZE );
-                SetWindowPos( hwndPrev, HWND_BOTTOM, rect.left, rect.top, rect.right-rect.left, rect.bottom - rect.top, SWP_NOACTIVATE );
+                SetWindowPos( hwndPrev, 0, rect.left, rect.top, rect.right-rect.left, rect.bottom - rect.top, SWP_NOACTIVATE|SWP_NOZORDER );
 
                 MDI_UpdateFrameText( GetParent(client), client, TRUE, NULL );
             }
-- 
1.5.4.5.GIT
