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-surface-shm.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-surface-shm.c')
-rw-r--r-- | src/cairo-xlib-surface-shm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cairo-xlib-surface-shm.c b/src/cairo-xlib-surface-shm.c index 17594b166..89f51a9e5 100644 --- a/src/cairo-xlib-surface-shm.c +++ b/src/cairo-xlib-surface-shm.c @@ -1193,7 +1193,7 @@ xorg_has_buggy_send_shm_completion_event(cairo_xlib_display_t *display, * * Remove the SendEvent bit (0x80) before doing range checks on event type. */ - if (strstr (ServerVendor (dpy), "X.Org") != NULL && + if (_cairo_xlib_vendor_is_xorg (dpy) && VendorRelease (dpy) < XORG_VERSION_ENCODE(1,11,0,1)) return TRUE; |