XI2: Where is Mode_switch?

Philipp Reh sefi at s-e-f-i.de
Tue Feb 1 05:22:27 PST 2011


Hi,

when I use XI2 to obtain keypress / keyrelease events, the XIModifierState 
of XIDeviceEvent doesn't seem to contain a bit that indicates if Mode_switch
was held down. In this case, all the four ints of the struct are zero.
However, if I run xev, it is reported that the state field of XKeyEvent 
contains 0x2000 in this case (I don't know why it is this value but it's 
there).

Because I don't get to know about the Mode_switch bit, the X*LookupString 
functions don't translate the special cases for me I have in my XModmap.

Did I miss to setup something or is something missing in XI2?

Cheers,
Philipp



More information about the xorg-devel mailing list