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)
committerPeter Michael Green <plugwash@raspbian.org>
Thu, 14 Mar 2019 18:39:31 +0000 (18:39 +0000)
commitc7ecb3e3e2539d667c387a3ec882e9c855529a9e
treef42133ceb3ec08e1ba593cc8b1bb179b93168ab0
parent32cfefd1e72609a175574cb801faa0387b3f8570
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