Commit fb99124f authored by Vitaliy Margolen's avatar Vitaliy Margolen Committed by Alexandre Julliard

Deactivate active window in ShowWindow(,SW_HIDE).

parent 6394a153
......@@ -2939,6 +2939,7 @@ static void test_messages(void)
SetWindowPos(hwnd, 0,0,0,0,0, SWP_HIDEWINDOW|SWP_NOSIZE|SWP_NOMOVE);
ok_sequence(WmSWP_HideOverlappedSeq, "SetWindowPos:SWP_HIDEWINDOW:overlapped", FALSE);
ok(!IsWindowVisible(hwnd), "window should not be visible at this point\n");
ok(GetActiveWindow() == hwnd, "window should still be active\n");
/* test WM_SETREDRAW on a visible top level window */
ShowWindow(hwnd, SW_SHOW);
......
......@@ -934,7 +934,9 @@ BOOL X11DRV_ShowWindow( HWND hwnd, INT cmd )
case SW_HIDE:
if (!wasVisible) return FALSE;
showFlag = FALSE;
swp |= SWP_HIDEWINDOW | SWP_NOSIZE | SWP_NOMOVE | SWP_NOZORDER;
swp |= SWP_HIDEWINDOW | SWP_NOSIZE | SWP_NOMOVE;
if (hwnd != GetActiveWindow())
swp |= SWP_NOACTIVATE | SWP_NOZORDER;
break;
case SW_SHOWMINNOACTIVE:
......
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