diff --git a/src/backends/meta-monitor-manager.c b/src/backends/meta-monitor-manager.c index 71ff8a2a3..1d42cad21 100644 --- a/src/backends/meta-monitor-manager.c +++ b/src/backends/meta-monitor-manager.c @@ -219,11 +219,17 @@ static float derive_configured_global_scale (MetaMonitorManager *manager, MetaMonitorsConfig *config) { - MetaLogicalMonitorConfig *logical_monitor_config; + GList *l; - logical_monitor_config = config->logical_monitor_configs->data; + for (l = config->logical_monitor_configs; l; l = l->next) + { + MetaLogicalMonitorConfig *monitor_config = l->data; - return logical_monitor_config->scale; + if (is_global_scale_matching_in_config (config, monitor_config->scale)) + return monitor_config->scale; + } + + return 1.0; } static float