[SDL] getting X11 (or windows) events when SDL_WINDOWID is set
Luigi Rizzo
rizzo at iet.unipi.it
Mon May 5 03:50:01 PDT 2008
Hi,
I am trying to write a simple wrapper that lets a generic SDL
application be used as a firefox plugin, but i am having
problem in receiving events in the SDL application.
In detail:
The wrapper is really straightforward (i am happy to post it
if people are interested): firefox tells the
plugins the WINDOWID of the area associated to the plugin,
so the wrapper can just set the SDL_WINDOWID environment variable,
and then fork the SDL application.
However, i see from the code in src/video/x11/SDL_x11video.c
that XSelectInput() is not called on this window, so the
application itself will not request X11 events.
Any idea on how to work around this limitation other than patching
the library ?
cheers
luigi
More information about the SDL
mailing list