Index: libgnome-desktop/gnome-rr.c
===================================================================
--- libgnome-desktop/gnome-rr.c	(revision 5348)
+++ libgnome-desktop/gnome-rr.c	(working copy)
@@ -362,7 +362,14 @@
 	     screen->min_height, screen->max_height);
 #endif
     
-    resources = XRRGetScreenResources (xdisplay, xroot);
+    /* XRRGetScreenResourcesCurrent is less expensive than
+       XRRGetScreenResources, however it is available only
+       in RandR 1.3 or higher */
+#ifdef RANDR_13_INTERFACE
+        resources = XRRGetScreenResourcesCurrent (xdisplay, xroot);
+#else
+        resources = XRRGetScreenResources (xdisplay, xroot);
+#endif
     
     if (resources)
     {
