[cairo] [PATCH] Fix version check for buggy_repeat on modular Xserver 1.x

Bernardo Innocenti bernie at codewiz.org
Wed Dec 5 04:04:09 PST 2007


The versioning of the X server has restarted from 1.0 in the
modular build.  So we adjust the text to avoid considering
the new servers buggy.
---
 src/cairo-xlib-display.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/cairo-xlib-display.c b/src/cairo-xlib-display.c
index efb53ba..6b389e5 100644
--- a/src/cairo-xlib-display.c
+++ b/src/cairo-xlib-display.c
@@ -292,7 +292,7 @@ _cairo_xlib_display_get (Display *dpy)
 
     display->buggy_repeat = FALSE;
     if (strstr (ServerVendor (dpy), "X.Org") != NULL) {
-	if (VendorRelease (dpy) <= 60802000)
+	if (VendorRelease (dpy) >= 60000000 && VendorRelease (dpy) <= 60802000)
 	    display->buggy_repeat = TRUE;
     } else if (strstr (ServerVendor (dpy), "XFree86") != NULL) {
 	if (VendorRelease (dpy) <= 40500000)
-- 
1.5.3.6.879.gf8111



More information about the cairo mailing list