On Tue, 21 Oct 2003 09:13:28 +0200, Lionel Ulmer lionel.ulmer@free.fr wrote:
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.
Don't we know this? And even if not, is there no way to forward the event to the normal event chain? In Windows there are Hookfunction and at some hooks you can choose to keep the event or continue it's processing. Is there no such thing in X when you grabbed Keys or Pointer?