Module: wine Branch: master Commit: d836a5062141dd42293ed044debbaf25f914f383 URL: http://source.winehq.org/git/wine.git/?a=commit;h=d836a5062141dd42293ed044de...
Author: Vitaliy Margolen wine-patches@kievinfo.com Date: Fri Jul 20 07:15:42 2007 -0600
winex11drv: Correctly react to focus loss away from Wine.
---
dlls/winex11.drv/event.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/winex11.drv/event.c b/dlls/winex11.drv/event.c index aad09c6..1f9d2a9 100644 --- a/dlls/winex11.drv/event.c +++ b/dlls/winex11.drv/event.c @@ -570,8 +570,8 @@ static void EVENT_FocusOut( HWND hwnd, XEvent *xev ) case we don't have to change the foreground window to 0 */ if (hwnd == GetForegroundWindow()) { - TRACE( "lost focus, setting fg to 0\n" ); - SetForegroundWindow( 0 ); + TRACE( "lost focus, setting fg to desktop\n" ); + SetForegroundWindow( GetDesktopWindow() ); } } }