Skip to content
Snippets Groups Projects
Commit 77e7dd67 authored by Guido Gunther's avatar Guido Gunther :zzz:
Browse files

PhoshMonitorManager: get preferred mode and current mode from monitor

Instead of hardcoding it use the data we have.
parent bbd1919e
No related branches found
No related tags found
No related merge requests found
......@@ -406,10 +406,10 @@ phosh_monitor_manager_handle_get_current_state (
G_VARIANT_TYPE ("a{sv}"));
g_variant_builder_add (&mode_properties_builder, "{sv}",
"is-current",
g_variant_new_boolean (TRUE));
g_variant_new_boolean (k == monitor->current_mode));
g_variant_builder_add (&mode_properties_builder, "{sv}",
"is-preferred",
g_variant_new_boolean (i == 0));
g_variant_new_boolean (k == monitor->preferred_mode));
mode_name = g_strdup_printf ("%dx%d@%.0f", mode->width, mode->height,
mode->refresh / 1000.0);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment