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]

RE: Multiwindows problem


Hi,

I'm experimenting with a fix for the missing WM_KEYUP message that can occur
in multiwindow mode.
It uses existing function calls, but is probably a bit of a hack!!

In winmultiwindowwindow.c, add a WM_SETFOCUS case to function
winTopLevelWindowProc:-

    case WM_SETFOCUS:

      winSendKeyEvent ('any up key', FALSE);

      /* Pass the message to the root window */
      SendMessage (hwndScreen, message, wParam, lParam);
      return 0;


Where 'any up key' is an integer and could be found, for example, in the
WM_KEYDOWN last received using:-

      winTranslateKey (wParam, lParam, &'any up key');

In fact any up-key code could probably be used?

I've currently testing using the UP code from the last key DOWN (if any).

How legit is this, as my knowledge of the XWin code is fairly basic?

Colin


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