user32: Don't send focus change messages if foreground window didn't change.

This commit is contained in:
Alexandre Julliard 2009-08-31 16:36:17 +02:00
parent 45c27e12d4
commit 6eabce171e
1 changed files with 1 additions and 1 deletions

View File

@ -193,7 +193,7 @@ static BOOL set_foreground_window( HWND hwnd, BOOL mouse )
}
SERVER_END_REQ;
if (ret)
if (ret && previous != hwnd)
{
if (send_msg_old) /* old window belongs to other thread */
SendNotifyMessageW( previous, WM_WINE_SETACTIVEWINDOW, 0, 0 );