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:
This works for all modifier except for Mode_switch
What else do I need to do?