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

Alex Barry alex.barry at gmail.com
Sun Mar 24 09:04:01 PDT 2013

For myself, I convinced my boss that Xinerama was a reasonable solution.
 If you're stuck using multiple x displays, you may want to create native
X11 windows and take over them with
 I believe it's possible in native code to specify which X11 display you
want your window to target - once SDL takes it over, it shouldn't matter
which display it's running on, however, I don't know how it will handle
input if you are using separate devices for each display.

On Sun, Mar 24, 2013 at 8:21 AM, Reto Schneider <
mailinglisten at reto-schneider.ch> wrote:

> On 03/24/2013 04:05 AM, Alex Barry wrote:
> > SDL_GetWindowDisplayIndex is relative to the X/Display instance, so if
> > each of your monitors runs within it's own X/Display, then the display
> > index will always be 0.  This isn't an SDL issue, this is how X11 works.
> That's true, probably the problem should be fixed somewhere else.
> The problem is, that the platform agnostic SDL_* functions depends on
> display numbers different from 0 to be encoded in the x/y values. In the
> X11_* context, the SDL_Window x/y values are expected to be absolute. So
> when passing a SDL_Window struct used in the X11_* context to a SDL_*
> function, it simply can no longer extract the display information (in a
> non TwinView/Xinerama environment).
> Any suggestions for a fix?
> _______________________________________________
> 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/20130324/1f82b2bc/attachment-0009.htm>

More information about the SDL mailing list