Revert last change in window activation on mouse click.

This commit is contained in:
Gerard Patel 1999-07-11 13:52:13 +00:00 committed by Alexandre Julliard
parent eaec1eeda5
commit 03c13bbdd7
1 changed files with 3 additions and 2 deletions

View File

@ -316,7 +316,7 @@ static DWORD MSG_ProcessMouseMsg( MSG *msg, BOOL remove, INT16 hittest,
/* Activate the window if needed */
if (hwndTop != GetForegroundWindow() && hwndTop != GetDesktopWindow())
if (hWnd != GetActiveWindow() && hWnd != GetDesktopWindow())
{
LONG ret = SendMessageA( hWnd, WM_MOUSEACTIVATE, hwndTop,
MAKELONG( hittest, message ) );
@ -324,7 +324,8 @@ static DWORD MSG_ProcessMouseMsg( MSG *msg, BOOL remove, INT16 hittest,
if ((ret == MA_ACTIVATEANDEAT) || (ret == MA_NOACTIVATEANDEAT))
eatMsg = TRUE;
if (((ret == MA_ACTIVATE) || (ret == MA_ACTIVATEANDEAT)))
if (((ret == MA_ACTIVATE) || (ret == MA_ACTIVATEANDEAT))
&& hwndTop != GetForegroundWindow() )
{
if (!WINPOS_SetActiveWindow( hwndTop, TRUE , TRUE ))
eatMsg = TRUE;