monitor-manager: Don't use switch-config when ensuring configuration
authorJonas Ådahl <jadahl@gmail.com>
Thu, 11 Oct 2018 13:16:26 +0000 (13:16 +0000)
committerSimon McVittie <smcv@debian.org>
Sat, 27 Apr 2019 23:13:35 +0000 (00:13 +0100)
commit08bc7cc7bd82889b19ffc31915a323591c9c6d6d
tree3d6bfa90ca4fc55f8a77444fc433c4830c8c2d58
parent94fc56ea5bee599a9fbe899540e711cd748d9f53
monitor-manager: Don't use switch-config when ensuring configuration

Switch-configs are only to be used in certain circumstances (see
meta_monitor_manager_can_switch_config()) so when ensuring
configuration and attempting to create a linear configuration, use the
linear configuration constructor function directly without going via the
switch config method, otherwise we might incorrectly fall back to the
fallback configuration (only enable primary monitor).

This is a regression introduced by 6267732bec97773.

(cherry picked from commit 149e4d69345adab2bfea84a04f88511cbad62fe0)

Bug: https://gitlab.gnome.org/GNOME/mutter/issues/342
Applied-upstream: 3.30.3, commit:7260ba5db3fcf9b086944aef9f3d89f159ece137

Gbp-Pq: Name monitor-manager-Don-t-use-switch-config-when-ensuring-con.patch
src/backends/meta-monitor-manager.c