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>
Wed, 6 Feb 2019 10:02:14 +0000 (10:02 +0000)
commite972cff9fd49f85f5180637bd0d51eed227b1934
treefbf92166f0f5f61fa015add986f83e11dd12dbb3
parent4ef90f2bb770b9829f96cbc97946a4fe15d24d2c
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