Multiwindows problem

Colin Harrison colin.harrison@virgin.net
Tue May 20 21:37:00 GMT 2003


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



More information about the Cygwin-xfree mailing list