Revert last change in window activation on mouse click.
This commit is contained in:
parent
eaec1eeda5
commit
03c13bbdd7
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue