XRandR fullscreen with rotation

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi, I’ve tried to create a fullscreen application by passing
SDL_FULLSCREEN to SDL_SetVideoMode, on a screen which is rotated by XRandR.

If I specify the resolution (1280x1024) I get a window of that size,
while I would expect the window to be 1024x1280. If I try to enter
1024x1280 it fails with:

“No video mode large enough for 1024x1280”

I would consider that to be expected thought, since the correct size is
1280x1024 (but rotated). If I specify 0x0 (to get the current
resolution) I also get the same error.

If I disable XRandR using SDL_VIDEO_X11_XRANDR=0 it seems to work but
the mouse behaves funny at the edges.

Is it possible to fix fullscreen mode using XRandR?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.15 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkwfpqQACgkQ6pa1H/H5pqUw3wCeJQz/Qq4G/jLSFscwpHq8Bp/d
OKsAoNyzfmKdCxC9hw0zOdHZCvNvBRQH
=Ko8y
-----END PGP SIGNATURE-----