[gnome-settings-daemon] color: Set the primary monitor metadata when creating a display device in colord



commit a15f3d83b0ffa7b05b7f3e571b60eab9785000e0
Author: Richard Hughes <richard hughsie com>
Date:   Wed Nov 21 11:20:26 2012 +0000

    color: Set the primary monitor metadata when creating a display device in colord
    
    This allows us to choose the correct profile when dumb applications support only
    one screen profile and we want to use only the 'default' output.

 plugins/color/gsd-color-manager.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/plugins/color/gsd-color-manager.c b/plugins/color/gsd-color-manager.c
index ae4fcc3..920603c 100644
--- a/plugins/color/gsd-color-manager.c
+++ b/plugins/color/gsd-color-manager.c
@@ -1433,6 +1433,13 @@ gcm_session_add_x11_output (GsdColorManager *manager, GnomeRROutput *output)
         g_hash_table_insert (device_props,
                              (gpointer) CD_DEVICE_METADATA_XRANDR_NAME,
                              (gpointer) gnome_rr_output_get_name (output));
+#if CD_CHECK_VERSION(0,1,25)
+        g_hash_table_insert (device_props,
+                             (gpointer) CD_DEVICE_METADATA_OUTPUT_PRIORITY,
+                             gnome_rr_output_get_is_primary (output) ?
+                             (gpointer) CD_DEVICE_METADATA_OUTPUT_PRIORITY_PRIMARY :
+                             (gpointer) CD_DEVICE_METADATA_OUTPUT_PRIORITY_SECONDARY);
+#endif
         cd_client_create_device (priv->client,
                                  device_id,
                                  CD_OBJECT_SCOPE_TEMP,



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