[gnome-desktop] Adapt to RANDR 1.3's name for the EDID property.
- From: Adam Jackson <ajackson src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnome-desktop] Adapt to RANDR 1.3's name for the EDID property.
- Date: Tue, 7 Jul 2009 22:25:47 +0000 (UTC)
commit d9f0cca94f16628cb273cadfe25bd5998ac3c178
Author: Adam Jackson <ajax redhat com>
Date: Tue Jul 7 18:20:12 2009 -0400
Adapt to RANDR 1.3's name for the EDID property.
1.2 calls it EDID_DATA, 1.3 calls it EDID. Try the 1.3 name first since
1.2 will eventually be rare.
libgnome-desktop/gnome-rr.c | 14 +++++++++++---
1 files changed, 11 insertions(+), 3 deletions(-)
---
diff --git a/libgnome-desktop/gnome-rr.c b/libgnome-desktop/gnome-rr.c
index a3a8b2c..b788600 100644
--- a/libgnome-desktop/gnome-rr.c
+++ b/libgnome-desktop/gnome-rr.c
@@ -866,13 +866,21 @@ get_property (Display *dpy,
static guint8 *
read_edid_data (GnomeRROutput *output)
{
- Atom edid_atom = XInternAtom (DISPLAY (output), "EDID_DATA", FALSE);
+ Atom edid_atom;
guint8 *result;
int len;
-
+
+ edid_atom = XInternAtom (DISPLAY (output), "EDID", FALSE);
result = get_property (DISPLAY (output),
output->id, edid_atom, &len);
-
+
+ if (!result)
+ {
+ edid_atom = XInternAtom (DISPLAY (output), "EDID_DATA", FALSE);
+ result = get_property (DISPLAY (output),
+ output->id, edid_atom, &len);
+ }
+
if (result)
{
if (len % 128 == 0)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]