diff options
author | Colin Harrison <colin.harrison@virgin.net> | 2009-01-04 19:57:56 +0000 |
---|---|---|
committer | Jon TURNEY <jon.turney@dronecode.org.uk> | 2009-01-19 14:49:08 +0000 |
commit | 847a91ad2e8c9b0992c09f0ec38466885d6d25d4 (patch) | |
tree | 62b8af977fc0731ea91469b0e369b5b15244aea2 /hw/xwin/winmultiwindowwndproc.c | |
parent | 6c3e7e4d0568ecb7d10b814593bbbd817b7d2aab (diff) |
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>
Diffstat (limited to 'hw/xwin/winmultiwindowwndproc.c')
-rw-r--r-- | hw/xwin/winmultiwindowwndproc.c | 3 |
1 files changed, 3 insertions, 0 deletions
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: |