Commit 6eabce17 authored by Alexandre Julliard's avatar Alexandre Julliard

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

parent 45c27e12
...@@ -193,7 +193,7 @@ static BOOL set_foreground_window( HWND hwnd, BOOL mouse ) ...@@ -193,7 +193,7 @@ static BOOL set_foreground_window( HWND hwnd, BOOL mouse )
} }
SERVER_END_REQ; SERVER_END_REQ;
if (ret) if (ret && previous != hwnd)
{ {
if (send_msg_old) /* old window belongs to other thread */ if (send_msg_old) /* old window belongs to other thread */
SendNotifyMessageW( previous, WM_WINE_SETACTIVEWINDOW, 0, 0 ); SendNotifyMessageW( previous, WM_WINE_SETACTIVEWINDOW, 0, 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