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 - [PATCH] Fall back to xinerama/xvidmode if xrandr modes initialization fails
Summary: [PATCH] Fall back to xinerama/xvidmode if xrandr modes initialization fails
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: video (show other bugs)
Version: HG 2.1
Hardware: All Linux
: P2 enhancement
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-08-02 11:06 UTC by Levi Bard
Modified: 2017-08-02 17:28 UTC (History)
0 users

See Also:


Attachments
Patch (569 bytes, patch)
2017-08-02 11:06 UTC, Levi Bard
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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