[mutter] monitor-config-manager: Rename builtin monitor lookup utility function



commit 617e1b30e24e4621a84d7e54d7edbb81944d2f1e
Author: Marco Trevisan (TreviƱo) <mail 3v1n0 net>
Date:   Fri Jul 30 16:12:08 2021 +0200

    monitor-config-manager: Rename builtin monitor lookup utility function
    
    It's only meant to find the builtin monitor configuration, for any
    rotation, so no need to specify that.
    
    Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1233>

 src/backends/meta-monitor-config-manager.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/backends/meta-monitor-config-manager.c b/src/backends/meta-monitor-config-manager.c
index 341ca155fe..1a0fdbd63b 100644
--- a/src/backends/meta-monitor-config-manager.c
+++ b/src/backends/meta-monitor-config-manager.c
@@ -998,8 +998,8 @@ clone_logical_monitor_config_list (GList *logical_monitor_configs_in)
 }
 
 static MetaLogicalMonitorConfig *
-find_logical_config_for_builtin_display_rotation (MetaMonitorConfigManager *config_manager,
-                                                  GList                    *logical_monitor_configs)
+find_logical_config_for_builtin_monitor (MetaMonitorConfigManager *config_manager,
+                                         GList                    *logical_monitor_configs)
 {
   MetaLogicalMonitorConfig *logical_monitor_config;
   MetaMonitorConfig *monitor_config;
@@ -1053,8 +1053,7 @@ create_for_builtin_display_rotation (MetaMonitorConfigManager *config_manager,
 
   current_configs = base_config->logical_monitor_configs;
   current_logical_monitor_config =
-    find_logical_config_for_builtin_display_rotation (config_manager,
-                                                      current_configs);
+    find_logical_config_for_builtin_monitor (config_manager, current_configs);
   if (!current_logical_monitor_config)
     return NULL;
 
@@ -1081,7 +1080,8 @@ create_for_builtin_display_rotation (MetaMonitorConfigManager *config_manager,
   logical_monitor_configs =
     clone_logical_monitor_config_list (base_config->logical_monitor_configs);
   logical_monitor_config =
-    find_logical_config_for_builtin_display_rotation (config_manager, logical_monitor_configs);
+    find_logical_config_for_builtin_monitor (config_manager,
+                                             logical_monitor_configs);
   logical_monitor_config->transform = transform;
 
   if (meta_monitor_transform_is_rotated (current_logical_monitor_config->transform) !=


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]