Commit 8623fdc2 authored by Francis Beaudet's avatar Francis Beaudet Committed by Alexandre Julliard

If the window is already the topmost window in ShowWindow(SW_SHOW), it

must not be activated.
parent 34264f26
......@@ -1331,6 +1331,15 @@ BOOL WINAPI ShowWindow( HWND hwnd, INT cmd )
/* fall through */
case SW_SHOW:
swp |= SWP_SHOWWINDOW | SWP_NOSIZE | SWP_NOMOVE;
/*
* ShowWindow has a little peculiar behavior that if the
* window is already the topmost window, it will not
* activate it.
*/
if (GetTopWindow((HWND)0)==hwnd)
swp |= SWP_NOACTIVATE;
break;
case SW_SHOWNOACTIVATE:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment