winex11drv: Correctly react to focus loss away from Wine.

This commit is contained in:
Vitaliy Margolen 2007-07-20 07:15:42 -06:00 committed by Alexandre Julliard
parent dcdf7c55d6
commit d836a50621

View file

@ -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() );
}
}
}