]> Dogcows Code - chaz/openbox/commitdiff
make work without --enable-xinerama
authorDana Jansens <danakj@orodu.net>
Mon, 22 Jul 2002 01:21:07 +0000 (01:21 +0000)
committerDana Jansens <danakj@orodu.net>
Mon, 22 Jul 2002 01:21:07 +0000 (01:21 +0000)
src/BaseDisplay.cc

index 8f3b39b17e827c1ebdaa753429d0e36639647473..320f2ba11d3b5e18f15f7a23623619210b4ead12 100644 (file)
@@ -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
 
This page took 0.025768 seconds and 4 git commands to generate.