Alexandre Julliard : user32: Bring SwitchToThisWindow a bit more in line with the now documented behavior .

Alexandre Julliard julliard at winehq.org
Mon Aug 31 10:48:22 CDT 2009


Module: wine
Branch: master
Commit: b464f9cacb89eea507d90829a3bd6fba54c70ce4
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=b464f9cacb89eea507d90829a3bd6fba54c70ce4

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Mon Aug 31 16:37:19 2009 +0200

user32: Bring SwitchToThisWindow a bit more in line with the now documented behavior.

---

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

diff --git a/dlls/user32/winpos.c b/dlls/user32/winpos.c
index 8aeecc2..ba33967 100644
--- a/dlls/user32/winpos.c
+++ b/dlls/user32/winpos.c
@@ -85,9 +85,10 @@ typedef struct
 /***********************************************************************
  *		SwitchToThisWindow (USER32.@)
  */
-void WINAPI SwitchToThisWindow( HWND hwnd, BOOL restore )
+void WINAPI SwitchToThisWindow( HWND hwnd, BOOL alt_tab )
 {
-    ShowWindow( hwnd, restore ? SW_RESTORE : SW_SHOWMINIMIZED );
+    if (IsIconic( hwnd )) ShowWindow( hwnd, SW_RESTORE );
+    else BringWindowToTop( hwnd );
 }
 
 




More information about the wine-cvs mailing list