We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 3722

Summary: [PATCH] Fall back to xinerama/xvidmode if xrandr modes initialization fails
Product: SDL Reporter: Levi Bard <levi>
Component: videoAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: enhancement    
Priority: P2    
Version: HG 2.1   
Hardware: All   
OS: Linux   
Attachments: Patch

Description Levi Bard 2017-08-02 11:06:07 UTC
Created attachment 2816 [details]
Patch

In some environments, xrandr modes initialization can fail even though xrandr support is present and of a sufficient version.
(The one I encountered was an AWS instance running a virtual display)

The attached patch allows SDL to keep trying other methods if xrandr modes initialization fails (still subject to SDL_VIDEO_X11_REQUIRE_XRANDR).
Comment 1 Sam Lantinga 2017-08-02 17:28:24 UTC
Fixed, thanks!
https://hg.libsdl.org/SDL/rev/393fa47cb702