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;
|
||||
#endif // SHAPE
|
||||
|
||||
xinerama.extensions = False;
|
||||
#ifdef XINERAMA
|
||||
if (XineramaQueryExtension(display, &xinerama.event_basep,
|
||||
&xinerama.error_basep)) {
|
||||
if (XineramaQueryVersion(display, &xinerama.major,
|
||||
&xinerama.minor)) {
|
||||
&xinerama.error_basep) &&
|
||||
XineramaQueryVersion(display, &xinerama.major, &xinerama.minor)) {
|
||||
#ifdef DEBUG
|
||||
fprintf(stderr,
|
||||
"BaseDisplay::BaseDisplay: Found Xinerama version %d.%d\n",
|
||||
xinerama.major, xinerama.minor);
|
||||
#endif // DEBUG
|
||||
xinerama.extensions = True;
|
||||
}
|
||||
} else {
|
||||
xinerama.extensions = False;
|
||||
}
|
||||
#endif // XINERAMA
|
||||
|
||||
|
|
Loading…
Reference in a new issue