Vincent Povirk : winex11.drv: Ignore FocusOut events on virtual desktop windows.
Alexandre Julliard
julliard at winehq.org
Thu Nov 12 10:22:11 CST 2009
Module: wine
Branch: master
Commit: 4622889bd5fd64122ee9bf6e80d48a99cf878b85
URL: http://source.winehq.org/git/wine.git/?a=commit;h=4622889bd5fd64122ee9bf6e80d48a99cf878b85
Author: Vincent Povirk <vincent at codeweavers.com>
Date: Wed Nov 11 14:52:14 2009 -0600
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
More information about the wine-cvs
mailing list