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 - Wayland: Properly discover displays and their modes.
Summary: Wayland: Properly discover displays and their modes.
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: video (show other bugs)
Version: HG 2.1
Hardware: All Linux
: P2 normal
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords: target-2.0.4
Depends on:
Blocks: 2803
  Show dependency treegraph
 
Reported: 2015-03-18 00:18 UTC by bugs
Modified: 2015-04-08 02:46 UTC (History)
2 users (show)

See Also:


Attachments
Patch implementing that cleanup. (11.27 KB, patch)
2015-03-18 00:18 UTC, bugs
Details | Diff
Fixup correctly handling refresh rate as mHz and not Hz. (11.29 KB, patch)
2015-03-18 15:07 UTC, bugs
Details | Diff
Wayland: Properly discover displays and their modes. (11.43 KB, patch)
2015-04-07 18:12 UTC, bugs
Details | Diff

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