monitor/normal: Prefer modes with same flags as preferred mode
authorJonas Ådahl <jadahl@gmail.com>
Wed, 18 Oct 2017 15:22:01 +0000 (23:22 +0800)
committerJeremy Bicha <jbicha@debian.org>
Sat, 21 Oct 2017 23:47:22 +0000 (00:47 +0100)
commit986a198533386832090c2f1d83c10e884e6d49c9
tree753f45100ef614e81d0bde8527d0dc9010027433
parent3abce064fc1da2ddab65b8b66213cc2588bbd0d6
monitor/normal: Prefer modes with same flags as preferred mode

When generating MetaMonitorMode's, prefer CRTC modes that has the same
set of flags as the preferred mode. This not only is probably a better
set of configurable modes, but it'll guarantee that the preferred mode
is added.

This fixes a crash when the preferred mode was not the first mode with
the same resolution, refresh rate and set of handled modes.

https://bugzilla.gnome.org/show_bug.cgi?id=789153

Gbp-Pq: Name 0015-monitor-normal-Prefer-modes-with-same-flags.patch
src/backends/meta-monitor.c