Alexandre Julliard : user32: Don' t send focus change messages if foreground window didn't change.
Alexandre Julliard
julliard at winehq.org
Mon Aug 31 10:48:21 CDT 2009
Module: wine
Branch: master
Commit: 6eabce171e8fa0ff67664319de4e755fd84b2fc0
URL: http://source.winehq.org/git/wine.git/?a=commit;h=6eabce171e8fa0ff67664319de4e755fd84b2fc0
Author: Alexandre Julliard <julliard at winehq.org>
Date: Mon Aug 31 16:36:17 2009 +0200
user32: Don't send focus change messages if foreground window didn't change.
---
dlls/user32/focus.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/user32/focus.c b/dlls/user32/focus.c
index 210af36..f086584 100644
--- a/dlls/user32/focus.c
+++ b/dlls/user32/focus.c
@@ -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 );
More information about the wine-cvs
mailing list