elementary / switchboard-plug-display

Switchboard Displays Plug
https://elementary.io
GNU General Public License v3.0
14 stars 18 forks source link

Fix mode and scale on mirror #208

Closed jeremypw closed 3 years ago

jeremypw commented 4 years ago

Correctly determines the appropriate mode and scale set for mirrored monitors. In master, the mirror scale was being set to 2.0, even when both component monitors were set to 1.0.

Separate functions used to get common modes and maximum compatible scale within those mode. If the mode and scales actually in use were less than the maximum compatible, the highest in use is used for the mirror.

This PR is based on #207. Together, switching to mirrored and back again, with one external monitor, should work correctly. (To be tested with > 1 external monitor).