Skip to content
  • Jonas Ådahl's avatar
    monitor-manager: Don't use switch-config when ensuring configuration · 149e4d69
    Jonas Ådahl authored and Georges Basile Stavracas Neto's avatar Georges Basile Stavracas Neto committed
    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 6267732b.
    
    Fixes: #342
    149e4d69