[AD] another keyboard bug (bleurgh)

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


Sorry for this incomplete bugreport, the full text is at home and I
will post it again later if required. I can't remember if I posted it
before or anyone else, either.  The reason I post now is that
Eric mentioned only one problem left in beta 4.0.3, and I haven't
checked if the following problem is in 4.0.3 too or only in 4.1.8:

(after a full night of debugging I reduced it to)
When you hold the alt button and make a window loose focus, Either by
pressing alt-tab in windowmaker or by holding alt while moving the
mouse out of the window and giving focus to another, the alt key
release isn't detected. This means that when the focus comes back, the
X driver thinks the alt key is still pressed, which results in
ureadkey returning complete bogus results. You can see it in the test
program with the keyboard test, or in a file selector dialog where the
editproc box stops taking normal input (a, b, c, read by ureadkey) and
still accepts backspace and arrow keys (read by readkey). I believe
the scancode doesn't get screwed up, but the asci/unicode does.

I will try to test this on 4.0.3 beta tomorrow (sunday), just wanted to
warn you that this problem may also exist in the beta.

System:
allegro 4.1.8
linux redhat 7.2
X 4.1.something
windowmaker
gcc 3.2.1

Hein Zelle

>-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-< 
 Unix is user friendly. It's just very particular about who 
 it's friends are.

 Hein Zelle                     hein@xxxxxxxxxx
	                        http://www.icce.rug.nl/~hein
>-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-<




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/