This is the mail archive of the
cygwin-xfree@cygwin.com
mailing list for the Cygwin XFree86 project.
RE: New devel to-do item (release all pressed keyboard keys on focus loss)
- From: "Harold Hunt" <huntharo at msu dot edu>
- To: <John_Tobey at notes dot intdata dot com>
- Cc: "cygx" <cygwin-xfree at cygwin dot com>
- Date: Wed, 5 Dec 2001 15:23:07 -0500
- Subject: RE: New devel to-do item (release all pressed keyboard keys on focus loss)
John,
> I suppose for this the solution would be to make winSendKeyEvent
> do nothing if
> its fDown already matches the array element
Nah, you can't do that because we sometimes call winSendKeyEvent multiple
times from winwndproc/winWindowProc()/WM_KEYDOWN if the key has a repeat
count.
> After some experimentation, I am somewhat confident that the
> doubling affects
> only certain clients, specifically xterm and not emacs or kedit.
I'm kinda confused here. You need to add an ErrorF () to WM_KEYDOWN and
WM_KEYUP to see if the doubled key message is being sent again immediately
after we regain focus.
> I doubt
> whether I can figure it out completely without a major time investment.
This is your baby now, and you're making good progress. Don't be
discouraged. These things take time to work out correctly.
Harold