(snip about XGrab-ing stuff)
I think that using this should work at least in programs where the entire screen is taken over, like in games, probably other applications well.
Well, this would work.... BUT there is a catch : when you grab the display or some keys, only the X connection where you did the grab will get the key events. And as in Wine, you have one connection per thread, you need to be sure to call these X functions from the thread the game does it input from.
Lionel