Hello together,
I am sending key events to an application using XSendEvent.
I creating an event like this as described on this page:
http://homepage3.nifty.com/tsato/xvkbd/events.html
It all works, except if I want to set the mode_switch (it's called AltGr on my keyboard) modifier state. xmodmap tells me, that Mode_switch is placed on mod5. So I do something like this:
Code:
if(Want_shift)
event.state|=ShiftMask;
if(Want_Alt)
event.state|=Mod1Mask;
...
if(Want_Mode_switch)
event.state|=Mod5Mask;
This works for all modifier except for Mode_switch
.
What else do I need to do?
Thanks!
Nathan