[SDL] Opening windows on different X displays (Ubuntu 12)

Sam Lantinga slouken at libsdl.org
Sat Mar 23 17:09:16 PDT 2013


SDL 2.0 uses the DISPLAY environment variable as well.  I don't have a
multi-X server configuration here.  Can you build a debug version of SDL
and trace through what it's doing?

On Sat, Mar 23, 2013 at 7:54 AM, Reto Schneider <
mailinglisten at reto-schneider.ch> wrote:

> I think the forum thread "SDL2 and Multiple Screens in Linux" [1] is
> relevant.
>
> To me this is a real issue as well. I have a notebook with a triple head
> setup. The first display (internal monitor) is driven by the integrated
> Intel graphics card. Both external monitors (2nd and 3rd display) are
> attached to the Nvidia graphics card.
> Unfortunately, AFAIK it is not possible to have both graphics cards
> offering GLX which forces me to disable the acceleration of the first
> screen.
>
> +++++++++++++++++++++ ++++++++++++++++++++++++ ++++++++++++++++++++++++
> +                   + +                      + +                      +
> + internal monitor  + +  external monitor 1  + +  external monitor 2  +
> +  :0.0  (no GLX)   + +   :0.1  (with GLX)   + +   :0.2 (with GLX)    +
> +                   + +                      + +                      +
> +++++++++++++++++++++ ++++++++++++++++++++++++ ++++++++++++++++++++++++
>
> As SDL always opens up the display on the first screen and given the
> fact that there is no GLX available, SDL does not work for applications
> which require OpenGL acceleration (passing SDL_WINDOW_OPENGL to
> SDL_CreateWindow). I do not have this problem for any SDL 1.2
> applications as SDL 1.2 respects the DISPLAY variable.
>
> Am I doing stuff wrong (please have a look at the attached test program)
> or is my setup just unsupported by the current SDL2 state?
>
> 1: http://forums.libsdl.org/viewtopic.php?t=8812
>
> On 03/20/2013 03:39 PM, Alex Barry wrote:
> > Xinerama isn't an option because i need hardware acceleration (which I'm
> > under the impression that it gets disabled with Xinerama enabled) - I am
> > enumerating with SDL_VideoDisplay, but the problem is that the SDL_Rect
> > boundary for both screens start at 0, which means they get placed in the
> > same Display, because SDL isn't aware that there are multiple X displays
> > available.
>
>
> _______________________________________________
> SDL mailing list
> SDL at lists.libsdl.org
> http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20130323/6b49c0ea/attachment-0009.htm>


More information about the SDL mailing list