Xlib and wine and XGrabButton

Gerhard W. Gruber sparhawk at gmx.at
Tue Oct 21 10:34:17 CDT 2003


On Tue, 21 Oct 2003 09:13:28 +0200, Lionel Ulmer <lionel.ulmer at 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?

-- 
Gerhard Gruber

Für jedes menschliche Problem gibt es immer eine einfache Lösung:
Klar, einleuchtend und falsch. (Henry Louis Mencken)




More information about the wine-devel mailing list