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]

Re: Keyboard Handling


Hi Alexander,

the test looks good!

Within xterm and an application (xcircuit) all keys show up as they should do
with my German keyboard.

Holger





Alexander Gottwald schrieb:

> Hi,
>
> I've tried some code to handle AltGr more correctly.
> I attached a patch to the winwndproc.c from Apr-14 Sourceball
> which fixes at least the press of AltGr (the release is not done yet).
>
> It uses mainly the good fact, that the fake Control_L- and Alt_R-message
> have the same timestamp. I just cache the Control_L press, set a very
> short timestamp and
> 1) drop the Control_L if the coresponding Alt_R message arrives
> 2) send the Control_L if
>     a) another key (not Alt_Gr) was pressed
>     b) the timeout (currently 1ms) expires
>
> The current code still needs to be cleaned up, but hope you can already
> give some hints on possible error and mistakes.
>
> I will make a test version available on http://www.gotti.org/ [1].
>
> bye
>     ago
>
> [1] http://www-usercgi.tu-chemnitz.de/~goal/xfree
> --
> Alexander.Gottwald@informatik.tu-chemnitz.de
> http://www.gotti.org
> +49 3725 3498080
>
>   ------------------------------------------------------------------------
>                       Name: winwndproc.diff
>    winwndproc.diff    Type: Plain Text (TEXT/PLAIN)
>                   Encoding: BASE64


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