mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-15 07:28:47 +00:00
winex11drv: Correctly react to focus loss away from Wine.
This commit is contained in:
parent
dcdf7c55d6
commit
d836a50621
|
@ -570,8 +570,8 @@ static void EVENT_FocusOut( HWND hwnd, XEvent *xev )
|
||||||
case we don't have to change the foreground window to 0 */
|
case we don't have to change the foreground window to 0 */
|
||||||
if (hwnd == GetForegroundWindow())
|
if (hwnd == GetForegroundWindow())
|
||||||
{
|
{
|
||||||
TRACE( "lost focus, setting fg to 0\n" );
|
TRACE( "lost focus, setting fg to desktop\n" );
|
||||||
SetForegroundWindow( 0 );
|
SetForegroundWindow( GetDesktopWindow() );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue