Ctrl got stuck

Alexander Gottwald alexander.gottwald@s1999.tu-chemnitz.de
Tue May 31 17:01:00 GMT 2005

On Tue, 31 May 2005, Tobias Polzin wrote:

> Hi,
> first of all: Thanks for the great cygwin-xfree!
> I have one major problem with it: Occasionly (approx every 2 hours,
> sometimes every 5 minutes) it feels like the CTRL-modifier got stuck. I used
> "cat" and "emacs" to see, that in this situations pressing an "a" is
> interpreted as "CTRL-a". If I press "CTRL", the situation is back to normal,
> but pressing "AltGr-something" does not give the desired result and makes
> CTRL got stuck again. Using the funny "Show Cursor" option of the
> X-tray-icon repairs the behaviour... for some minutes or hours. Also
> starting a new xterm -window and closing it repaired the behaviour recently.
> I conjecture that it has something to do with AltGr. As I use the german
> keyboard-layout, I have to use AltGr a lot of times while programming C++

It seems to appear more often under high load. But unfortunatly there is not 
much we can do about it. 

Windows reports alt-gr as simultanious presses of ctrl and alt and we have to 
detect whether it is alt-gr or the keys are really pressed together. Under heavy
load the timeouts (and timestamps) of the events may differ between press and 
release events. That way you get a control press and an alt-gr release so control
gets stuck.

the only solution is making the detection more robust.

 http://www.gotti.org           ICQ: 126018723

More information about the Cygwin-xfree mailing list