Commit fbecbc29 authored by Abey George's avatar Abey George Committed by Alexandre Julliard

Make sure the Focus Out window is still the Foreground window before

doing SetForegroundWindow(0) in Event_FocusOut.
parent d21dde71
......@@ -745,7 +745,14 @@ static void EVENT_FocusOut( HWND hWnd, XFocusChangeEvent *event )
else
SendMessageA( hWnd, WM_CANCELMODE, 0, 0 );
WIN_ReleaseWndPtr(pWnd);
SetForegroundWindow( 0 );
/* Abey : 6-Oct-99. Check again if the focus out window is the
Foreground window, because in most cases the messages sent
above must have already changed the foreground window, in which
case we don't have to change the foreground window to 0 */
if (hWnd == GetForegroundWindow())
SetForegroundWindow( 0 );
}
}
......
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