mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-01-02 00:40:13 +01:00
Restrict initial buggy version to X.Org 6.7 rather than 6.0
Also add some comments describing the test.
This commit is contained in:
parent
d4138d1161
commit
be79779331
1 changed files with 8 additions and 1 deletions
|
|
@ -292,7 +292,14 @@ _cairo_xlib_display_get (Display *dpy)
|
|||
|
||||
display->buggy_repeat = FALSE;
|
||||
if (strstr (ServerVendor (dpy), "X.Org") != NULL) {
|
||||
if (VendorRelease (dpy) >= 60000000 && VendorRelease (dpy) <= 60802000)
|
||||
/* When modularized, the X.Org server VendorRelease was
|
||||
* bogusly reset to a very small number, without any change in
|
||||
* the ServerVendor string. We avoid considering the new
|
||||
* servers with the small number as buggy by restricting the
|
||||
* test to known bad releases. But there could be a problem
|
||||
* again in the future if X.Org server versions ever climb
|
||||
* 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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue