From fe3daef887f4b326c546f8c1040643329e596b81 Mon Sep 17 00:00:00 2001 From: Vincent Povirk Date: Wed, 11 Nov 2009 14:52:14 -0600 Subject: [PATCH 3/3] 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 files changed, 1 insertions(+), 0 deletions(-) diff --git a/dlls/winex11.drv/event.c b/dlls/winex11.drv/event.c index 8c23203..e8e4522 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 -- 1.6.3.3