Created attachment 27195 [details]
The bug is as stated in the summary: calling XkbSetDetectableAutoRepeat returns True and stores True in *supported_rtrn, but detectable autorepeat does not go into effect. I still get a KeyRelease event before every autorepeat KeyPress event. I've attached a small program that reproduces the bug.
I imagine this might be a duplicate of bug 22194, but the writeup there is too cryptic and I can't tell what the actual bug is.
I'm hitting this bug on two machines running the version of X that comes with Ubuntu 9.04 (jaunty). One is a 64-bit AMD desktop using the nvidia driver; the other is a 32-bit Thinkpad T41 using the radeon driver. The Ubuntu package version number for Xlib is 2:126.96.36.199-1ubuntu2. Unfortunately I don't know where to look for the upstream version number of Xlib. I'll attach an Xorg.0.log file from one system in case that helps.
(BTW, I'm also experiencing bug 21454 on the same systems -- i.e., the two best ways to suppress keyboard autorepeat both are buggy at the moment.)
Created attachment 27196 [details]
Perhaps too obvious to point out, but this bug is visible through GDK too. GDK tries to always set detectable autorepeat, and if XkbSetDetectableAutoRepeat says it is not supported, GDK emulates it by filtering out the extra KeyReleased events. With this bug, since support is claimed but doesn't work, GDK doesn't do the emulation either.
This breaks some applications in Wine too but I'm mainly commenting to point out this:
I hope this is useful to anyone coming here looking for more information.
Just confirmed in current git.
I'm not in the position to increase this bugs Priority, but IMO it should be changed to high. This is now hitting mainstream distributions (eg Ubuntu 9.04) and quite some apps may be affected, possibly in some subtle ways.
The problem is understood and Daniel seems to have a fix in his repo, so I hope this will be resolved soon.
*** Bug 22194 has been marked as a duplicate of this bug. ***
Another application that is affected by this bug: https://gna.org/bugs/?14033
There is a patch attached to the the mail that is linked above. Is there something wrong with that fix?
I just checked with current git and the bug is no more. Looks like it was fixed some time ago by .