From: Dmitry Timoshkov dmitry@codeweavers.com
"F Capela" fabio.capela@yahoo.com wrote:
XkbSetDetectableAutoRepeat is not working correctly on some distributions, including Ubuntu 9.04. In practical terms, this means programs running under Wine on such distros are unable to ignore autorepeat, doing strange things to games that use keyboard controls, for example. One way to work around the problem is to manually filter out the key release messages, which can be done with a few extra lines in dlls/winex11.drv/event.c . My question is, should I send a patch enabling this filtering? From what I have seen, patches to work around bugs that are clearly outside Wine are usually not accepted.
Have you reported a bug to XOrg and those distros about that?
-- Dmitry.
I have not yet filled a bug with Ubuntu (which is the distro I'm using), I'll do it as soon as I find how, but while searching for information about this issue I saw a bug filled for Gentoo (which I'm not sure if it's still present), and there are two open bugs under bugs.freedesktop.org (http://bugs.freedesktop.org/show_bug.cgi?id=22194 and http://bugs.freedesktop.org/show_bug.cgi?id=22515) about XkbSetDetectableAutoRepeat not working, both filled in june, one reported under Ubuntu and the other for the GIT version.
A bit of extra information, the only software I use that seems to be affected is World of Warcraft; the walk animation stutters when using the keyboard to move, and some things that should not auto repeat (jumps, spell casting, etc) do repeat.
BTW, the same bug will happen (and be wine's fault) if the X server does not support DetectableAutorepeat, since when it calls XkbSetDetectableAutoRepeat in dlls/winex11.drv/x11drv_main.c, wine does not care about the function's return value or third argument (although I don't think there is any widely used version of the X server that don't support DetectableAutorepeat).
Fábio Oliveira Schmidt Capela