[gnome-flashback/wip/randr-1.5: 3/7] display-config: expose tile info as a property over dbus interface



commit 519d3c2ab7b59a7aa833eb7b02aa4f90171d9fad
Author: Dave Airlie <airlied redhat com>
Date:   Tue Mar 31 10:44:16 2015 +1000

    display-config: 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.

 .../libdisplay-config/flashback-display-config.c   |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)
---
diff --git a/gnome-flashback/libdisplay-config/flashback-display-config.c 
b/gnome-flashback/libdisplay-config/flashback-display-config.c
index 11ae7db..9d56213 100644
--- a/gnome-flashback/libdisplay-config/flashback-display-config.c
+++ b/gnome-flashback/libdisplay-config/flashback-display-config.c
@@ -395,6 +395,20 @@ handle_get_resources (MetaDBusDisplayConfig *skeleton,
           g_bytes_unref (edid);
         }
 
+      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,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]