From b7ab0001ce99e430ffe984ea9e6e1eb688ed1dad Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Mon, 22 Jul 2002 04:39:32 +0000 Subject: [PATCH] move an assert to its proper place --- src/Screen.cc | 1 + src/Workspace.cc | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Screen.cc b/src/Screen.cc index fc6979d8..46b15b22 100644 --- a/src/Screen.cc +++ b/src/Screen.cc @@ -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 diff --git a/src/Workspace.cc b/src/Workspace.cc index 8a62d1b0..90ca6ef3 100644 --- a/src/Workspace.cc +++ b/src/Workspace.cc @@ -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) -- 2.45.2