[SDL] followup (Re: getting X11 (or windows) events when SDL_WINDOWID is set
pphaneuf at gmail.com
Thu May 8 10:58:02 PDT 2008
On Thu, May 8, 2008 at 1:15 PM, Luigi Rizzo <rizzo at iet.unipi.it> wrote:
> 2. add a new API call to SDL to access the low-level descriptor to
> talk directly with the graphic server (X11 or other).
> This is powerful in that it opens the way to all sort of manipulations
> of the graphic server, however it requires backend-specific code
> in the SDL application to do what one needs;
SDL_GetWMInfo() can get you the Xlib Display* (have a look at what
else is there). Make sure to read the documentation about the
SDL_VERSION() bit, it's quite important!
You'll probably then have to enable SDL_SysWMEvent and handle them to
get at the X11 events, if I understand this correctly (I haven't done
the specific thing you want, I get the Display* and hack other
More information about the SDL