summaryrefslogtreecommitdiff
path: root/gdk/x11/gdkdisplay-x11.c
diff options
context:
space:
mode:
authorMatthias Clasen <matthiasc@src.gnome.org>2009-02-13 18:12:57 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2009-02-13 18:12:57 +0000
commit2e67143e3b9b5812ce72baf9ded7e152d83a4c60 (patch)
tree907c0927af763eaf46685b8eae57c9feccd50a1b /gdk/x11/gdkdisplay-x11.c
parent26971eaaff0ff55de06c26100190c6841ab33aba (diff)
downloadgtk+-2e67143e3b9b5812ce72baf9ded7e152d83a4c60.tar.gz
Check for Xrandr 1.3
* configure.in: Check for Xrandr 1.3 * gdk/x11/gdkdisplay-x11.[ch]: Rename have_randr12 to have_randr13 and set if if we have randr 1.3 * gdk/x11/gdkscreen-x11.c: Go back to using randr for monitor information, if we have XRRGetScreenResourcesCurrent. svn path=/trunk/; revision=22327
Diffstat (limited to 'gdk/x11/gdkdisplay-x11.c')
-rw-r--r--gdk/x11/gdkdisplay-x11.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdk/x11/gdkdisplay-x11.c b/gdk/x11/gdkdisplay-x11.c
index cdab444910..bf54b95b75 100644
--- a/gdk/x11/gdkdisplay-x11.c
+++ b/gdk/x11/gdkdisplay-x11.c
@@ -184,7 +184,7 @@ gdk_display_open (const gchar *display_name)
_gdk_x11_precache_atoms (display, precache_atoms, G_N_ELEMENTS (precache_atoms));
/* RandR must be initialized before we initialize the screens */
- display_x11->have_randr12 = FALSE;
+ display_x11->have_randr13 = FALSE;
#ifdef HAVE_RANDR
if (XRRQueryExtension (display_x11->xdisplay,
&display_x11->xrandr_event_base, &ignore))
@@ -193,8 +193,8 @@ gdk_display_open (const gchar *display_name)
XRRQueryVersion (display_x11->xdisplay, &major, &minor);
- if ((major == 1 && minor >= 2) || major > 1)
- display_x11->have_randr12 = TRUE;
+ if ((major == 1 && minor >= 3) || major > 1)
+ display_x11->have_randr13 = TRUE;
}
#endif