summaryrefslogtreecommitdiff
path: root/graphics/cairo/patches/patch-src_cairo-xlib-surface-shm.c
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/cairo/patches/patch-src_cairo-xlib-surface-shm.c')
-rw-r--r--graphics/cairo/patches/patch-src_cairo-xlib-surface-shm.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/graphics/cairo/patches/patch-src_cairo-xlib-surface-shm.c b/graphics/cairo/patches/patch-src_cairo-xlib-surface-shm.c
new file mode 100644
index 00000000000..d60d25dfb50
--- /dev/null
+++ b/graphics/cairo/patches/patch-src_cairo-xlib-surface-shm.c
@@ -0,0 +1,17 @@
+$NetBSD: patch-src_cairo-xlib-surface-shm.c,v 1.5 2012/10/26 21:49:23 wiz Exp $
+
+Recognize Xorg servers as well as X.org servers. From Chris Wilson (upstream);
+fixes some more firefox issues.
+
+--- src/cairo-xlib-surface-shm.c.orig 2012-10-21 08:13:41.000000000 +0000
++++ src/cairo-xlib-surface-shm.c
+@@ -1141,7 +1141,8 @@ xorg_has_buggy_send_shm_completion_event
+ *
+ * Remove the SendEvent bit (0x80) before doing range checks on event type.
+ */
+- return (strstr (ServerVendor (dpy), "X.Org") != NULL &&
++ return ((strstr (ServerVendor (dpy), "X.Org") != NULL ||
++ strstr (ServerVendor (dpy), "Xorg") != NULL ) &&
+ VendorRelease (dpy) < XORG_VERSION_ENCODE(1,11,0,1));
+ }
+