зеркало из https://github.com/mozilla/gecko-dev.git
31 строка
952 B
Diff
31 строка
952 B
Diff
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
|
|
@@ -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)
|
|
display->buggy_repeat = TRUE;
|
|
}
|
|
|
|
+ /* XXX workaround; see https://bugzilla.mozilla.org/show_bug.cgi?id=413583 */
|
|
+ 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;
|
|
+
|
|
display->next = _cairo_xlib_display_list;
|
|
_cairo_xlib_display_list = display;
|
|
|