b=513583, bandaid for X repeat bug, r=stuart
authorvladimir@pobox.com
Tue, 29 Jan 2008 10:45:08 -0800
changeset 10925 f91425c07d5ea1c9c583030b4eca0bc1ec4a8f63
parent 10924 c240b3f25bb784ee39ab1baf99e7fcd12077be68
child 10926 cb282ecb9ea07825ef3317bb50b692ef6b6c1b63
push idunknown
push userunknown
push dateunknown
reviewersstuart
bugs513583
milestone1.9b3pre
b=513583, bandaid for X repeat bug, r=stuart
gfx/cairo/buggy-repeat.patch
gfx/cairo/cairo/src/cairo-xlib-display.c
new file mode 100644
--- /dev/null
+++ b/gfx/cairo/buggy-repeat.patch
@@ -0,0 +1,13 @@
+diff --git a/gfx/cairo/cairo/src/cairo-xlib-display.c b/gfx/cairo/cairo/src/cairo-xlib-display.c
+--- a/gfx/cairo/cairo/src/cairo-xlib-display.c
++++ b/gfx/cairo/cairo/src/cairo-xlib-display.c
+@@ -302,6 +302,9 @@ _cairo_xlib_display_get (Display *dpy)
+ 	    display->buggy_repeat = TRUE;
+     }
+ 
++    /* XXX workaround; see https://bugzilla.mozilla.org/show_bug.cgi?id=413583 */
++    display->buggy_repeat = TRUE;
++
+     display->next = _cairo_xlib_display_list;
+     _cairo_xlib_display_list = display;
+ 
--- a/gfx/cairo/cairo/src/cairo-xlib-display.c
+++ b/gfx/cairo/cairo/src/cairo-xlib-display.c
@@ -297,16 +297,19 @@ cairo_xlib_display_t *
 	 * back up to 6.7 or 6.8. */
 	if (VendorRelease (dpy) >= 60700000 && VendorRelease (dpy) <= 60802000)
 	    display->buggy_repeat = TRUE;
     } else if (strstr (ServerVendor (dpy), "XFree86") != NULL) {
 	if (VendorRelease (dpy) <= 40500000)
 	    display->buggy_repeat = TRUE;
     }
 
+    /* XXX workaround; see https://bugzilla.mozilla.org/show_bug.cgi?id=413583 */
+    display->buggy_repeat = TRUE;
+
     display->next = _cairo_xlib_display_list;
     _cairo_xlib_display_list = display;
 
 UNLOCK:
     CAIRO_MUTEX_UNLOCK (_cairo_xlib_display_mutex);
     return display;
 }