make work without --enable-xinerama
This commit is contained in:
parent
bcb14a3ce9
commit
f7122039db
1 changed files with 8 additions and 9 deletions
|
@ -236,19 +236,18 @@ BaseDisplay::BaseDisplay(const char *app_name, const char *dpy_name) {
|
||||||
shape.extensions = False;
|
shape.extensions = False;
|
||||||
#endif // SHAPE
|
#endif // SHAPE
|
||||||
|
|
||||||
xinerama.extensions = False;
|
|
||||||
#ifdef XINERAMA
|
#ifdef XINERAMA
|
||||||
if (XineramaQueryExtension(display, &xinerama.event_basep,
|
if (XineramaQueryExtension(display, &xinerama.event_basep,
|
||||||
&xinerama.error_basep)) {
|
&xinerama.error_basep) &&
|
||||||
if (XineramaQueryVersion(display, &xinerama.major,
|
XineramaQueryVersion(display, &xinerama.major, &xinerama.minor)) {
|
||||||
&xinerama.minor)) {
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
fprintf(stderr,
|
fprintf(stderr,
|
||||||
"BaseDisplay::BaseDisplay: Found Xinerama version %d.%d\n",
|
"BaseDisplay::BaseDisplay: Found Xinerama version %d.%d\n",
|
||||||
xinerama.major, xinerama.minor);
|
xinerama.major, xinerama.minor);
|
||||||
#endif // DEBUG
|
#endif // DEBUG
|
||||||
xinerama.extensions = True;
|
xinerama.extensions = True;
|
||||||
}
|
} else {
|
||||||
|
xinerama.extensions = False;
|
||||||
}
|
}
|
||||||
#endif // XINERAMA
|
#endif // XINERAMA
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue