From 847a91ad2e8c9b0992c09f0ec38466885d6d25d4 Mon Sep 17 00:00:00 2001 From: Colin Harrison Date: Sun, 4 Jan 2009 19:57:56 +0000 Subject: [PATCH] Xming: Notify X when the keyboard focus is lost to a pure Windows window in -multiwindow mode. Fix internal WM to notify X when the keyboard focus is lost to a pure Windows window in -multiwindow mode. Signed-off-by: Jon TURNEY --- hw/xwin/winmultiwindowwndproc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hw/xwin/winmultiwindowwndproc.c b/hw/xwin/winmultiwindowwndproc.c index 7ebe42faa..b5e789c2c 100644 --- a/hw/xwin/winmultiwindowwndproc.c +++ b/hw/xwin/winmultiwindowwndproc.c @@ -678,6 +678,9 @@ winTopLevelWindowProc (HWND hwnd, UINT message, /* Remove our keyboard hook if it is installed */ winRemoveKeyboardHookLL (); + if (!wParam) + /* Revert the X focus as well, but only if the Windows focus is going to another window */ + DeleteWindowFromAnyEvents(pWin, FALSE); return 0; case WM_SYSDEADCHAR: