This is the mail archive of the
cygwin-xfree@cygwin.com
mailing list for the Cygwin XFree86 project.
Quick fix for missing WM_KEYUP messages on window exits in multiwindow mode (part of RE: Multiwindows problem)
- From: "Colin Harrison" <colin dot harrison at virgin dot net>
- To: <cygwin-xfree at cygwin dot com>
- Date: Wed, 21 May 2003 15:53:23 +0100
- Subject: Quick fix for missing WM_KEYUP messages on window exits in multiwindow mode (part of RE: Multiwindows problem)
- Reply-to: cygwin-xfree at cygwin dot com
Hi,
I've got to stop working on this for a while.
The 'best' minimal quick fix I have for the missed WM_KEYUP events on exits
from xterms etc. in multiwindow is:-
diff -ubB orig_winmultiwindowwindow.c winmultiwindowwindow.c
--- save_winmultiwindowwindow.c 2003-05-18 19:19:59.000000000 +0100
+++ winmultiwindowwindow.c 2003-05-21 14:47:37.000000000 +0100
@@ -984,6 +984,12 @@
SendMessage(hwndScreen, message, wParam, lParam);
return 0;
+ case WM_SETFOCUS:
+ if (hwndScreen == NULL)
+ break;
+ winKeybdReleaseKeys ();
+ return 0;
+
case WM_SYSKEYDOWN:
case WM_SYSKEYUP:
case WM_SYSDEADCHAR:
It's a hack, it works for me, but it does not get to gripes with the
ultimate cause of the problem.
I will put more time and effort into this ASAP, with a view to fixing
problems, not adding to the work-arounds!
Colin