| Summary: | XRandR display detection doesn't work | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Ryan C. Gordon <icculus> |
| Component: | video | Assignee: | Ryan C. Gordon <icculus> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | ||
| Version: | HG 2.0 | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Attachments: | Patch to fix XRandR code and favor it over Xinerama. | ||
|
Description
Ryan C. Gordon
2015-07-15 03:28:24 UTC
> [...] if I force it to only use Xinerama...
>
> SDL_VIDEO_X11_XINERAMA=1 SDL_VIDEO_X11_XVIDMODE=0 SDL_VIDEO_XRANDR=0
Whoops, that XRANDR disable was the wrong environment variable; the Xinerama codepath leans on the XRandR one and vice versa at the moment. Without XRandR, the Xinerama codepath is only good for correctly identifying current monitor dimensions and placing windows appropriately on them, but can't enumerate modes or change resolutions.
--ryan.
Created attachment 2235 [details]
Patch to fix XRandR code and favor it over Xinerama.
This patch fixes the XRandR code and makes it so we won't use Xinerama at all if XRandR is available to us.
Side effect: fixes people with the Nvidia drivers with broken Xinerama support, and also now correctly identifies and handles the primary display.
--ryan.
This patch is now https://hg.libsdl.org/SDL/rev/d3fa6d0d3793 ...marking this FIXED until we hear it broke everything. :) --ryan. |