I have a setup with one X11 display, which has two screens. These screens
are separate, they are not left, right, above, or below of one-another.
They are actually in completely different locations, so none of these
descriptions would make any sense.
I was not able to figure out how to get an SDL window (fullscreen or
otherwise) to show up on the second screen. No matter what I tried, it
always showed up on the first.
Also, the DISPLAY variable’s screen number was completely ignored.
While I believe there are still some issues left here, proper support of
the DISPLAY variable’s screen number was pretty trivial to add, and solved
I believe this patch does not break the original design of how this was
supposed to work, as it only rearranges the order of the screens in the
list of modes (simply swapping the default screen to be first, if it isn’t
Anything that looks through all the SDL displays will still see all the
displays’ modes, and will still get to select from them, just as before.
Anything that doesn’t check the displays, and just opens on the default
screen will now use the correct default screen, as specified in the DISPLAY
I tested this with both SDL2 FULLSCREEN_DESKTOP windows, and with
non-fullscreen windows, with both my first and second screens, and, with
this patch, they now all work fine.
-------------- next part --------------
A non-text attachment was scrubbed…
Size: 1229 bytes
Desc: not available