monitor-manager/xrandr: Use a single supported scales list for all
authorJonas Ådahl <jadahl@gmail.com>
Fri, 13 Oct 2017 06:34:19 +0000 (14:34 +0800)
committerJeremy Bicha <jbicha@debian.org>
Sat, 21 Oct 2017 23:47:22 +0000 (00:47 +0100)
commit3abce064fc1da2ddab65b8b66213cc2588bbd0d6
tree00308a4cef46623f67ac661dda045301f34fa844
parent4bf219bb9425c0abd64883f90b9d0b23139b2375
monitor-manager/xrandr: Use a single supported scales list for all

Under X11 we can only ever have the same scale configured on all
monitors. In order to use e.g. scale 2 when there is a HiDPI monitor
connected, we must not disallow it because there is a monitor that does
not support scale 2. Thus we must show the same scale for every monitor
and monitor mode, even though it might result in a bad experience.

Do this by iterating through all the monitors adding all supported
scales by the preferred mode, combining all the supported scales. This
supported scales list is then used for all monitor and modes no matter
what.

https://bugzilla.gnome.org/show_bug.cgi?id=788901
https://launchpad.net/bugs/1724024

Gbp-Pq: Name 0014-Use-a-single-supported-scales.patch
src/backends/x11/meta-monitor-manager-xrandr.c