2008-01-29 10:45:08 -08:00
|
|
|
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
|
2008-03-04 21:45:09 -08:00
|
|
|
@@ -63,6 +63,8 @@ struct _cairo_xlib_job {
|
|
|
|
};
|
|
|
|
|
|
|
|
static cairo_xlib_display_t *_cairo_xlib_display_list;
|
|
|
|
+
|
|
|
|
+static int buggy_repeat_force = -1;
|
|
|
|
|
|
|
|
static void
|
|
|
|
_cairo_xlib_call_close_display_hooks (cairo_xlib_display_t *display)
|
|
|
|
@@ -302,6 +304,17 @@ _cairo_xlib_display_get (Display *dpy)
|
2008-01-29 10:45:08 -08:00
|
|
|
display->buggy_repeat = TRUE;
|
|
|
|
}
|
|
|
|
|
|
|
|
+ /* XXX workaround; see https://bugzilla.mozilla.org/show_bug.cgi?id=413583 */
|
2008-03-04 21:45:09 -08:00
|
|
|
+ if (buggy_repeat_force == -1) {
|
|
|
|
+ if (getenv("MOZ_CAIRO_NO_BUGGY_REPEAT"))
|
|
|
|
+ buggy_repeat_force = 0;
|
|
|
|
+ else
|
|
|
|
+ buggy_repeat_force = 1;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if (buggy_repeat_force)
|
|
|
|
+ display->buggy_repeat = TRUE;
|
2008-01-29 10:45:08 -08:00
|
|
|
+
|
|
|
|
display->next = _cairo_xlib_display_list;
|
|
|
|
_cairo_xlib_display_list = display;
|
|
|
|
|