Commit d836a506 authored by Vitaliy Margolen's avatar Vitaliy Margolen Committed by Alexandre Julliard

winex11drv: Correctly react to focus loss away from Wine.

parent dcdf7c55
...@@ -570,8 +570,8 @@ static void EVENT_FocusOut( HWND hwnd, XEvent *xev ) ...@@ -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() );
} }
} }
} }
......
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