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 <jon.turney@dronecode.org.uk>
This commit is contained in:
Colin Harrison 2009-01-04 19:57:56 +00:00 committed by Jon TURNEY
parent 6c3e7e4d05
commit 847a91ad2e

View File

@ -678,6 +678,9 @@ winTopLevelWindowProc (HWND hwnd, UINT message,
/* Remove our keyboard hook if it is installed */ /* Remove our keyboard hook if it is installed */
winRemoveKeyboardHookLL (); 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; return 0;
case WM_SYSDEADCHAR: case WM_SYSDEADCHAR: