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>
This commit is contained in:
Marco Trevisan (Treviño) 2021-07-30 16:12:08 +02:00 committed by Jonas Ådahl
parent c326313370
commit 617e1b30e2

View File

@ -998,8 +998,8 @@ clone_logical_monitor_config_list (GList *logical_monitor_configs_in)
} }
static MetaLogicalMonitorConfig * static MetaLogicalMonitorConfig *
find_logical_config_for_builtin_display_rotation (MetaMonitorConfigManager *config_manager, find_logical_config_for_builtin_monitor (MetaMonitorConfigManager *config_manager,
GList *logical_monitor_configs) GList *logical_monitor_configs)
{ {
MetaLogicalMonitorConfig *logical_monitor_config; MetaLogicalMonitorConfig *logical_monitor_config;
MetaMonitorConfig *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_configs = base_config->logical_monitor_configs;
current_logical_monitor_config = current_logical_monitor_config =
find_logical_config_for_builtin_display_rotation (config_manager, find_logical_config_for_builtin_monitor (config_manager, current_configs);
current_configs);
if (!current_logical_monitor_config) if (!current_logical_monitor_config)
return NULL; return NULL;
@ -1081,7 +1080,8 @@ create_for_builtin_display_rotation (MetaMonitorConfigManager *config_manager,
logical_monitor_configs = logical_monitor_configs =
clone_logical_monitor_config_list (base_config->logical_monitor_configs); clone_logical_monitor_config_list (base_config->logical_monitor_configs);
logical_monitor_config = 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; logical_monitor_config->transform = transform;
if (meta_monitor_transform_is_rotated (current_logical_monitor_config->transform) != if (meta_monitor_transform_is_rotated (current_logical_monitor_config->transform) !=