Jonas Ådahl 1b439c42d1 monitor-manager: Find active monitor when deriving global scale
When deriving the global scale directly from the current hardware state
(as done when using the X11 backend) we are inspecting the logical
state they had prior to the most recent hot plug. That means that a
primary monitor might have been disabled, and a new primary monitor may
not have been assigned yet.

Stop assuming a primary monitor has an active mode before having
reconstructed the logical state by finding some active monitor if the
old primary monitor was disabled. This avoids a crash when trying to
derive the global scale from a disabled monitor.

Closes: https://gitlab.gnome.org/GNOME/mutter/issues/130


(cherry picked from commit 0b3a1c9c314a88c57668437245d54b200537e619)
2018-04-25 08:58:15 +00:00
2015-07-06 00:52:18 -07:00
2018-04-10 17:58:12 +02:00
2017-05-11 13:45:44 +02:00
2018-04-13 19:11:57 +02:00
2016-04-27 20:37:47 +02:00
2018-04-13 19:11:57 +02:00
Description
94 MiB
Languages
C 98.9%
Meson 0.7%
Python 0.3%