monitor: Add meta_monitor_get_min_refresh_rate()

This function gets the minimum refresh rate of the monitor's main
output.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3576>
This commit is contained in:
Dor Askayo 2024-02-11 02:24:34 +02:00 committed by Marge Bot
parent cb40a1c510
commit a53c02bba5
2 changed files with 14 additions and 0 deletions

View File

@ -2274,6 +2274,17 @@ meta_monitor_set_privacy_screen_enabled (MetaMonitor *monitor,
return meta_output_set_privacy_screen_enabled (output, enabled, error); return meta_output_set_privacy_screen_enabled (output, enabled, error);
} }
gboolean
meta_monitor_get_min_refresh_rate (MetaMonitor *monitor,
int *min_refresh_rate)
{
const MetaOutputInfo *output_info =
meta_monitor_get_main_output_info (monitor);
return meta_output_info_get_min_refresh_rate (output_info,
min_refresh_rate);
}
gboolean gboolean
meta_monitor_set_color_space (MetaMonitor *monitor, meta_monitor_set_color_space (MetaMonitor *monitor,
MetaOutputColorspace color_space, MetaOutputColorspace color_space,

View File

@ -303,6 +303,9 @@ gboolean meta_monitor_set_privacy_screen_enabled (MetaMonitor *monitor,
gboolean enabled, gboolean enabled,
GError **error); GError **error);
gboolean meta_monitor_get_min_refresh_rate (MetaMonitor *monitor,
int *min_refresh_rate);
META_EXPORT_TEST META_EXPORT_TEST
size_t meta_monitor_get_gamma_lut_size (MetaMonitor *monitor); size_t meta_monitor_get_gamma_lut_size (MetaMonitor *monitor);