monitors: adds expose tile info as a property over dbus interface

This just adds 8 uint32s as a property to the dbus protocol.

This will be used by gnome-desktop to get the tile info.
This commit is contained in:
Dave Airlie 2015-03-31 10:44:16 +10:00 committed by Jasper St. Pierre
parent 6a77d9722a
commit 2a8563ab23

View File

@ -549,6 +549,20 @@ meta_monitor_manager_handle_get_resources (MetaDBusDisplayConfig *skeleton,
}
}
if (output->tile_info.group_id)
{
g_variant_builder_add (&properties, "{sv}", "tile",
g_variant_new ("(uuuuuuuu)",
output->tile_info.group_id,
output->tile_info.flags,
output->tile_info.max_h_tiles,
output->tile_info.max_v_tiles,
output->tile_info.loc_h_tile,
output->tile_info.loc_v_tile,
output->tile_info.tile_w,
output->tile_info.tile_h));
}
g_variant_builder_add (&output_builder, "(uxiausauaua{sv})",
i, /* ID */
(gint64)output->winsys_id,