From f7122039db43e473b4e7adade8b484eea071d802 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Mon, 22 Jul 2002 01:21:07 +0000 Subject: [PATCH] make work without --enable-xinerama --- src/BaseDisplay.cc | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/src/BaseDisplay.cc b/src/BaseDisplay.cc index 8f3b39b1..320f2ba1 100644 --- a/src/BaseDisplay.cc +++ b/src/BaseDisplay.cc @@ -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); + fprintf(stderr, + "BaseDisplay::BaseDisplay: Found Xinerama version %d.%d\n", + xinerama.major, xinerama.minor); #endif // DEBUG - xinerama.extensions = True; - } + xinerama.extensions = True; + } else { + xinerama.extensions = False; } #endif // XINERAMA -- 2.45.2