winex11.drv: Ignore FocusOut events on virtual desktop windows.

We don't want to send WM_CANCELMODE or set the foreground window to the
desktop when a virtual desktop loses focus. It has its own focus independent
of X.
This commit is contained in:
Vincent Povirk 2009-11-11 14:52:14 -06:00 committed by Alexandre Julliard
parent 6823f4aaf8
commit 4622889bd5
1 changed files with 1 additions and 0 deletions

View File

@ -678,6 +678,7 @@ static void X11DRV_FocusOut( HWND hwnd, XEvent *xev )
wine_tsx11_unlock();
}
if (hwnd != GetForegroundWindow()) return;
if (root_window != DefaultRootWindow(event->display)) return;
SendMessageW( hwnd, WM_CANCELMODE, 0, 0 );
/* don't reset the foreground window, if the window which is