]> Dogcows Code - chaz/openbox/commitdiff
move an assert to its proper place
authorDana Jansens <danakj@orodu.net>
Mon, 22 Jul 2002 04:39:32 +0000 (04:39 +0000)
committerDana Jansens <danakj@orodu.net>
Mon, 22 Jul 2002 04:39:32 +0000 (04:39 +0000)
src/Screen.cc
src/Workspace.cc

index fc6979d814668d599405030f0c24c8a86a672d85..46b15b2238800c6bb007e42c6f824666eab61552 100644 (file)
@@ -2077,6 +2077,7 @@ const Rect& BScreen::availableArea(void) const {
 #ifdef    XINERAMA
 RectList BScreen::allAvailableAreas(void) const {
   assert(isXineramaActive());
+  assert(xineramaUsableArea.size() > 0);
   return xineramaUsableArea;
 }
 #endif // XINERAMA
index 8a62d1b0c2a1b4ce420c5ebd490f69d7ce15420c..90ca6ef3e38f0332c6cf43cd38bd2ca22d29aa34 100644 (file)
@@ -592,7 +592,6 @@ bool Workspace::smartPlacement(Rect& win) {
   if (screen->isXineramaActive() &&
       screen->getBlackbox()->doXineramaPlacement()) {
     RectList availableAreas = screen->allAvailableAreas();
-    assert(availableAreas.size() > 0);
     RectList::iterator it, end = availableAreas.end();
 
     for (it = availableAreas.begin(); it != end; ++it)
@@ -686,7 +685,6 @@ bool Workspace::underMousePlacement(Rect &win) {
   if (screen->isXineramaActive() &&
       screen->getBlackbox()->doXineramaPlacement()) {
     RectList availableAreas = screen->allAvailableAreas();
-    assert(availableAreas.size() > 0);
     RectList::iterator it, end = availableAreas.end();
 
     for (it = availableAreas.begin(); it != end; ++it)
This page took 0.028765 seconds and 4 git commands to generate.