This is the mail archive of the cygwin-xfree@cygwin.com mailing list for the Cygwin XFree86 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Quick fix for missing WM_KEYUP messages on window exits in multiwindow mode (part of RE: Multiwindows problem)


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]