Commit 9b64e2d2 authored by Marco Trevisan's avatar Marco Trevisan 🎺

monitor-manager: Expose renderer type in dbus properties

parent 54a00926
......@@ -1398,6 +1398,7 @@ meta_monitor_manager_handle_get_current_state (MetaDBusDisplayConfig *skeleton,
MetaMonitorManagerCapability capabilities;
int ui_scaling_factor;
int max_screen_width, max_screen_height;
char *renderer;
g_variant_builder_init (&monitors_builder,
G_VARIANT_TYPE (MONITORS_FORMAT));
......@@ -1552,6 +1553,14 @@ meta_monitor_manager_handle_get_current_state (MetaDBusDisplayConfig *skeleton,
}
g_variant_builder_init (&properties_builder, G_VARIANT_TYPE ("a{sv}"));
renderer = g_ascii_strdown (G_OBJECT_TYPE_NAME (manager) +
strlen (g_type_name (g_type_parent (G_OBJECT_TYPE (manager)))),
-1);
g_variant_builder_add (&properties_builder, "{sv}",
"renderer",
g_variant_new_take_string (renderer));
capabilities = meta_monitor_manager_get_capabilities (manager);
if ((capabilities & META_MONITOR_MANAGER_CAPABILITY_MIRRORING) == 0)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment