From 4622889bd5fd64122ee9bf6e80d48a99cf878b85 Mon Sep 17 00:00:00 2001 From: Vincent Povirk Date: Wed, 11 Nov 2009 14:52:14 -0600 Subject: [PATCH] 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. --- dlls/winex11.drv/event.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/winex11.drv/event.c b/dlls/winex11.drv/event.c index 8c232031544..e8e4522dfe5 100644 --- a/dlls/winex11.drv/event.c +++ b/dlls/winex11.drv/event.c @@ -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 -- 2.11.4.GIT