[gnome-flashback] monitor-config-manager: find builtin configuration even when inactive
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-flashback] monitor-config-manager: find builtin configuration even when inactive
- Date: Sat, 23 Oct 2021 18:48:45 +0000 (UTC)
commit c80d28c16b402a47748bd8124054690e7476d259
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Mon Sep 13 14:36:07 2021 +0300
monitor-config-manager: find builtin configuration even when inactive
Based on mutter commit:
https://gitlab.gnome.org/GNOME/mutter/-/commit/c32631337041
backends/gf-monitor-config-manager.c | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
---
diff --git a/backends/gf-monitor-config-manager.c b/backends/gf-monitor-config-manager.c
index 22780bb..289b653 100644
--- a/backends/gf-monitor-config-manager.c
+++ b/backends/gf-monitor-config-manager.c
@@ -547,7 +547,7 @@ find_logical_config_for_builtin_monitor (GfMonitorConfigManager *config_manager,
panel = gf_monitor_manager_get_laptop_panel (config_manager->monitor_manager);
- if (panel == NULL || !gf_monitor_is_active (panel))
+ if (panel == NULL)
return NULL;
for (l = logical_monitor_configs; l; l = l->next)
@@ -567,7 +567,15 @@ find_logical_config_for_builtin_monitor (GfMonitorConfigManager *config_manager,
monitor_config = logical_monitor_config->monitor_configs->data;
if (gf_monitor_spec_equals (gf_monitor_get_spec (panel),
monitor_config->monitor_spec))
- return logical_monitor_config;
+ {
+ GfMonitorMode *mode;
+
+ mode = gf_monitor_get_mode_from_spec (panel,
+ monitor_config->mode_spec);
+
+ if (mode != NULL)
+ return logical_monitor_config;
+ }
}
return NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]