Jonas Ådahl 205dc28eae monitor-manager: Compare keys when checking whether a config is complete
We only counted configured monitors and whether the config was
applicable (could be assigned), howeverwe didn't include disabled
monitors when comparing. This could caused incorrect configurations to
be applied when trying to use the previous configuration.

One scenario where this happened was one a system with one laptop
screen and one external monitor that was hot plugged some point after
start up. When the laptop lid was closed, the 'previous configuration'
being the configuration where only the laptop panel was enabled, passed
'is-complete' check as the number of configured monitors were correct,
and the configuration was applicable.

Avoid this issue by simply comparing the configuration key of the
previous configuration and the configuration key of the current state.
This correctly identifies a laptop panel with the lid closed as
inaccessible, thus doesn't incorrectly revert to the previous
configuration.

https://bugzilla.gnome.org/show_bug.cgi?id=788915
2017-11-30 12:01:57 +08:00
2015-07-06 00:52:18 -07:00
2017-11-29 12:14:07 +00:00
2014-03-18 20:37:35 -04:00
2017-10-03 15:55:11 -03:00
2017-05-11 13:45:44 +02:00
2016-04-27 20:37:47 +02:00
2014-07-31 17:50:28 +02:00
2017-11-02 16:54:54 +01:00
Description
91 MiB
Languages
C 98.9%
Meson 0.7%
Python 0.3%