Since libOIS upstream is apparently dead, and the projects that use it (mostly games[1] using Ogre3D libraries like freeorion) are gradually abandoning this library (including Ogre3D), clearly the bug will never be resolved.
So I want to sumarize my last discoveries about the bug itself. First, the bug is caused by a weird interaction with xscreensaver. The behaviour of xscreensaver in some way causes the appearance of the unexpected KeyRelease events that leads to the libOIS misbehaviour already explained. More details here: http://www.freeorion.org/forum/viewtopic.php?p=70165#p70165 My suspects of the root of the problem are detailed here: http://www.freeorion.org/forum/viewtopic.php?p=71435#p71435 Long explanation short: I think the bug could be in X.Org Server event queue handling code, but that code is too complex (and prone to errors) to be worth check it without a good reason (and there is no good reason if upstream and dowstream are not going to apply any patches). So I recommend to anyone affected by this bug to talk to the developers of the application to move away from libOIS to another library with actual suport (like SDL). It's going to be a better solution in the long term. [1] By the way, it's a bit strange that libOIS is under the umbrella of Debian Multimedia Maintainers instead of Debian Games Team due to its nature and users.
signature.asc
Description: Digital signature