On 2006-06-06, Sebastien <[EMAIL PROTECTED]> wrote: > I think I've got it. I unmapped the keysym codes (78 74 80 85) and it works! > I don't know If there will be other consequenses.
Ah, that explains a lot. XKeysymToKeycode can return only one "keycode" (architechture dependent hardware code) for a "keysym" (X software code). But you have multiple keycodes assigned to the same keysym (possibly behind a modifier or not). While it would be possible to simply use the keysyms reported by X in the events it sends for normal input, this is not possible for grabbed keys: grabs must be done by the hardware key code. Doing things differently for grabs (that a usable window manager must necessarily use) and normal input would complicate the code and make things inconsistent. Although it might be possible to find all the keycodes for a keysym with a horrible hack, I don't think one should have multiple keycodes mapped to the same keysym. -- Tuomo
