[gnome-settings-daemon/gnome-3-20] color: Ignore fake VNC devices
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon/gnome-3-20] color: Ignore fake VNC devices
- Date: Tue, 17 May 2016 13:25:56 +0000 (UTC)
commit 2e79e2db59a186819ee47d21d98851bb857281f0
Author: Richard Hughes <richard hughsie com>
Date: Mon May 16 12:56:45 2016 +0100
color: Ignore fake VNC devices
Resolves: https://bugzilla.gnome.org/show_bug.cgi?id=766553
plugins/color/gsd-color-state.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/plugins/color/gsd-color-state.c b/plugins/color/gsd-color-state.c
index 061e414..9f8308f 100644
--- a/plugins/color/gsd-color-state.c
+++ b/plugins/color/gsd-color-state.c
@@ -970,6 +970,7 @@ gcm_session_add_state_output (GsdColorState *state, GnomeRROutput *output)
{
const gchar *edid_checksum = NULL;
const gchar *model = NULL;
+ const gchar *output_name = NULL;
const gchar *serial = NULL;
const gchar *vendor = NULL;
gboolean ret;
@@ -979,6 +980,13 @@ gcm_session_add_state_output (GsdColorState *state, GnomeRROutput *output)
GHashTable *device_props = NULL;
GsdColorStatePrivate *priv = state->priv;
+ /* VNC creates a fake device that cannot be color managed */
+ output_name = gnome_rr_output_get_name (output);
+ if (output_name != NULL && g_str_has_prefix (output_name, "VNC-")) {
+ g_debug ("ignoring %s as fake VNC device detected", output_name);
+ return;
+ }
+
/* try to get edid */
edid = gcm_session_get_output_edid (state, output, &error);
if (edid == NULL) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]