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 2913

Summary: Wayland: Properly discover displays and their modes.
Product: SDL Reporter: bugs
Component: videoAssignee: Ryan C. Gordon <icculus>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2 CC: bugs, icculus
Version: HG 2.1Keywords: target-2.0.4
Hardware: All   
OS: Linux   
Bug Depends on:    
Bug Blocks: 2803    
Attachments: Patch implementing that cleanup.
Fixup correctly handling refresh rate as mHz and not Hz.
Wayland: Properly discover displays and their modes.

Description bugs 2015-03-18 00:18:48 UTC
Created attachment 2070 [details]
Patch implementing that cleanup.

The current Wayland backend creates a dummy display and uses a complicated way to fill it with every mode supported by every output.  This patch cleans that mess up by attaching the displays and their modes to SDL’s internals as soon as they are received.
Comment 1 bugs 2015-03-18 15:07:19 UTC
Created attachment 2071 [details]
Fixup correctly handling refresh rate as mHz and not Hz.

This mistake was due to an issue in my compositor.
Comment 2 bugs 2015-04-07 18:12:48 UTC
Created attachment 2107 [details]
Wayland: Properly discover displays and their modes.

Remove a forgotten variable.
Comment 3 Ryan C. Gordon 2015-04-08 02:46:41 UTC
(In reply to bugs from comment #2)
> Created attachment 2107 [details]
> Wayland: Properly discover displays and their modes.
> 
> Remove a forgotten variable.

This patch is now https://hg.libsdl.org/SDL/rev/975453c4e217, thanks!

--ryan.