SDL2 X11 fullscreen broken

Hi,

I have big problems with fullscreen mode on X11, which can be replicated using the SDL2 tests (I am using “testscale” here):

“./testscale” works fine

“./testscale --fullscreen” switches video mode two times (to a smaller res, then back), then shows a borderless always-on-top window in the top left corner of the screen and sits there (gdb tells me XIfEvent, called by X11_EndWindowFullscreenLegacy, is waiting forever)

“SDL_HINT_VIDEO_X11_XRANDR=1 ./testscale --fullscreen” works fine, but does not change resolution, but shows “Window requested size 640x480, got 1680x1050”

“SDL_HINT_VIDEO_X11_XVIDMODE=0 ./testscale --fullscreen” works fine, but has no way to change resolution

“./testscale --geometry 1680x1050 --fullscreen” does not change video mode, then hangs there on black screen, and according to gdb, the same thing happens as with 640x480

What can I do to help figure out where the issue is more exactly?

The “waiting forever” happens exactly here:

1125 XIfEvent(display, &ev, &isMapNotify, (XPointer)&data->xwindow);

Why we are not getting a MapNotify, no idea.

2012/12/13 divVerent

**
Hi,

I have big problems with fullscreen mode on X11, which can be replicated
using the SDL2 tests (I am using “testscale” here):

“./testscale” works fine

“./testscale --fullscreen” switches video mode two times (to a smaller
res, then back), then shows a borderless always-on-top window in the top
left corner of the screen and sits there (gdb tells me XIfEvent, called by
X11_EndWindowFullscreenLegacy, is waiting forever)

“SDL_HINT_VIDEO_X11_XRANDR=1 ./testscale --fullscreen” works fine, but
does not change resolution, but shows “Window requested size 640x480, got
1680x1050”

“SDL_HINT_VIDEO_X11_XVIDMODE=0 ./testscale --fullscreen” works fine, but
has no way to change resolution

“./testscale --geometry 1680x1050 --fullscreen” does not change video
mode, then hangs there on black screen, and according to gdb, the same
thing happens as with 640x480

What can I do to help figure out where the issue is more exactly?

The “waiting forever” happens exactly here:

1125 XIfEvent(display, &ev, &isMapNotify, (XPointer)&data->xwindow);

Why we are not getting a MapNotify, no idea.

See here, a few of those behaviours are already documented:
http://bugzilla.libsdl.org/show_bug.cgi?id=1617

It would be nice if you can post this there along with a bit more of
information on your system (Linux distro, Window manager, xrandr -q, etc)–
Gabriel.

Oh yeah, that reminds me, I need to later do the tests again since it
turns out I could upgrade the driver after all. That should make
xrandr usable for me at least, though I assume it still causes trouble
for multimonitor setups (for the record, it never rearranged window
positions for me, the refresh rate was the only broken thing with
xrandr, and that was minor really, even if annoying).

2012/12/13 Gabriel Jacobo :>

2012/12/13 divVerent

Hi,

I have big problems with fullscreen mode on X11, which can be replicated
using the SDL2 tests (I am using “testscale” here):

“./testscale” works fine

“./testscale --fullscreen” switches video mode two times (to a smaller
res, then back), then shows a borderless always-on-top window in the top
left corner of the screen and sits there (gdb tells me XIfEvent, called by
X11_EndWindowFullscreenLegacy, is waiting forever)

“SDL_HINT_VIDEO_X11_XRANDR=1 ./testscale --fullscreen” works fine, but
does not change resolution, but shows “Window requested size 640x480, got
1680x1050”

“SDL_HINT_VIDEO_X11_XVIDMODE=0 ./testscale --fullscreen” works fine, but
has no way to change resolution

“./testscale --geometry 1680x1050 --fullscreen” does not change video
mode, then hangs there on black screen, and according to gdb, the same thing
happens as with 640x480

What can I do to help figure out where the issue is more exactly?

The “waiting forever” happens exactly here:

1125 XIfEvent(display, &ev, &isMapNotify, (XPointer)&data->xwindow);

Why we are not getting a MapNotify, no idea.

See here, a few of those behaviours are already documented:
http://bugzilla.libsdl.org/show_bug.cgi?id=1617

It would be nice if you can post this there along with a bit more of
information on your system (Linux distro, Window manager, xrandr -q, etc)


Gabriel.


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