This is the mail archive of the
cygwin-xfree@cygwin.com
mailing list for the Cygwin XFree86 project.
RE: Multiwindows problem
- From: "Colin Harrison" <colin dot harrison at virgin dot net>
- To: <cygwin-xfree at cygwin dot com>
- Date: Tue, 20 May 2003 22:36:50 +0100
- Subject: RE: Multiwindows problem
- Reply-to: cygwin-xfree at cygwin dot com
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