From 2a8563ab23754dc9a1e0363db9a83437b6aaa01c Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Tue, 31 Mar 2015 10:44:16 +1000 Subject: [PATCH] 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. --- src/backends/meta-monitor-manager.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/backends/meta-monitor-manager.c b/src/backends/meta-monitor-manager.c index b5304d634..029c214e3 100644 --- a/src/backends/meta-monitor-manager.c +++ b/src/backends/meta-monitor-manager.c @@ -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,