diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2012-10-26 10:51:31 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2012-10-26 11:31:14 +0100 |
commit | fdd2082f923012a1354be7086d03f78fb166695b (patch) | |
tree | e02226ab36d5bde16cd4d7815831e683a0679ddc /src/cairo-xlib-display.c | |
parent | 00feb8ce530a472abbde445b52d9ae8c99ec97f0 (diff) | |
download | cairo-fdd2082f923012a1354be7086d03f78fb166695b.tar.gz |
xlib: Check for both X.org and Xorg ServerVendors
Martin Husemann reported that on his NetBSD machine the vendor was being
reported as "The Xorg Foundation", a non-conformist separatist split of
the Peoples' Liberation Army^W^W^W "The X.Org Foundation". Simply check
for both during initialisation.
Reported-by: Martin Husemann <martin@duskware.de>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/cairo-xlib-display.c')
-rw-r--r-- | 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 67c067355..04c89b2a6 100644 --- a/src/cairo-xlib-display.c +++ b/src/cairo-xlib-display.c @@ -315,7 +315,7 @@ _cairo_xlib_device_create (Display *dpy) * safest to just blacklist all old-versioning-scheme X servers, * (just using VendorRelease < 70000000), as buggy_repeat=TRUE. */ - if (strstr (ServerVendor (dpy), "X.Org") != NULL) { + if (_cairo_xlib_vendor_is_xorg (dpy)) { if (VendorRelease (dpy) >= 60700000) { if (VendorRelease (dpy) < 70000000) display->buggy_repeat = TRUE; |