SDL, twinview and xinerama

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

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.

Thanks!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

Good to hear there is some discussion on this topic. I’ve started looking
deeper into the code myself, and plan on doing some hacking over the next
few days.

Eddie Ringle
@Eddie_Ringle
http://eddieringle.com/On Mon, Dec 6, 2010 at 11:51 AM, Sam Lantinga wrote:

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.

Thanks!

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


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org