[SDL] SDL, twinview and xinerama

Sam Lantinga slouken at libsdl.org
Mon Dec 6 08:51:39 PST 2010

It's been a while since I looked at the Xinerama stuff, but the
intention is that you see each monitor separately.  You're welcome to
dig into it and submit a patch.


On Tue, Nov 30, 2010 at 5:09 AM, Manuel Massing
<m.massing at warped-space.de> wrote:
> Hi,
> being new to the SDL 1.3 API, I was wondering how a Xinerama multi-head
> configuration would/should be exposed by the SDL1.3 API?
> At the moment, if multiple monitors are enabled via twinview,
> SDL_GetNumVideoDisplays detects a single display (because X11_InitModes does
> no Xinerama or XRandR handling at all).
> When enumerating available modes in X11_GetDisplayModes, it does query those
> extensions, though.
> If it is the intention of the SDL API:
>        1) to return the number of connected displays in SDL_GetNumVideoDisplays
>        (as I suspect and hope)?
>        2) Or is the current behaviour correct and there is no explicit way of
>        choosing a xinerama screen via the VideoDisplay number? Am I
>        misunderstanding the intention of the whole VideoDisplay API?
> In case of 1) (and if nobody is working on this), I could try to implement the
> necessary Xinerama handling. See also
> http://forums.libsdl.org/viewtopic.php?t=6261
> thanks,
>        Manuel
> _______________________________________________
> SDL mailing list
> SDL at lists.libsdl.org
> http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

    -Sam Lantinga, Founder and President, Galaxy Gameworks LLC

More information about the SDL mailing list