]> Dogcows Code - chaz/openbox/commitdiff
set teh xinerama stuff even when not compiled with the xinerama extension so code...
authorDana Jansens <danakj@orodu.net>
Mon, 17 Feb 2003 21:47:09 +0000 (21:47 +0000)
committerDana Jansens <danakj@orodu.net>
Mon, 17 Feb 2003 21:47:09 +0000 (21:47 +0000)
otk/screeninfo.cc
otk/screeninfo.hh

index 2838c897f888f46180dd3b7f355f2ecc205d21ec..689837d0202a969d41e7191d1e803ada401829d8 100644 (file)
@@ -80,7 +80,7 @@ ScreenInfo::ScreenInfo(int num) {
 
   _display_string = string("DISPLAY=") + default_string + '.' +
     itostring(static_cast<unsigned long>(_screen));
-  
+
 #if 0 //def    XINERAMA
   _xinerama_active = False;
 
@@ -112,12 +112,16 @@ ScreenInfo::ScreenInfo(int num) {
 
           // if we can't find any xinerama regions, then we act as if it is not
           // active, even though it said it was
-          _xinerama_active = True;
+          _xinerama_active = true;
         }
       }
     }
   }
+#else
+  _xinerama_active = false;
 #endif // XINERAMA
+  if (!_xinerama_active)
+    _xinerama_areas.push_back(Rect(Point(0, 0), _size));
 }
 
 }
index 584d92ece76313893a0bc9e2011fa64971c52429..17063e37cd29186c02a9a16bf31480181d795d83 100644 (file)
@@ -24,10 +24,8 @@ private:
   int _screen;
   std::string _display_string;
   Size _size;
-#ifdef XINERAMA
   std::vector<Rect> _xinerama_areas;
   bool _xinerama_active;
-#endif
 
 public:
   ScreenInfo(int num);
@@ -39,11 +37,9 @@ public:
   inline int screen() const { return _screen; }
   inline const Size& size() const { return _size; }
   inline const std::string& displayString() const { return _display_string; }
-#ifdef XINERAMA
   inline const std::vector<Rect> &xineramaAreas() const
     { return _xinerama_areas; }
   inline bool isXineramaActive() const { return _xinerama_active; }
-#endif
 };
 
 }
This page took 0.024014 seconds and 4 git commands to generate.