move an assert to its proper place

This commit is contained in:
Dana Jansens 2002-07-22 04:39:32 +00:00
parent e18ff901fc
commit b7ab0001ce
2 changed files with 1 additions and 2 deletions

View file

@ -2077,6 +2077,7 @@ const Rect& BScreen::availableArea(void) const {
#ifdef XINERAMA #ifdef XINERAMA
RectList BScreen::allAvailableAreas(void) const { RectList BScreen::allAvailableAreas(void) const {
assert(isXineramaActive()); assert(isXineramaActive());
assert(xineramaUsableArea.size() > 0);
return xineramaUsableArea; return xineramaUsableArea;
} }
#endif // XINERAMA #endif // XINERAMA

View file

@ -592,7 +592,6 @@ bool Workspace::smartPlacement(Rect& win) {
if (screen->isXineramaActive() && if (screen->isXineramaActive() &&
screen->getBlackbox()->doXineramaPlacement()) { screen->getBlackbox()->doXineramaPlacement()) {
RectList availableAreas = screen->allAvailableAreas(); RectList availableAreas = screen->allAvailableAreas();
assert(availableAreas.size() > 0);
RectList::iterator it, end = availableAreas.end(); RectList::iterator it, end = availableAreas.end();
for (it = availableAreas.begin(); it != end; ++it) for (it = availableAreas.begin(); it != end; ++it)
@ -686,7 +685,6 @@ bool Workspace::underMousePlacement(Rect &win) {
if (screen->isXineramaActive() && if (screen->isXineramaActive() &&
screen->getBlackbox()->doXineramaPlacement()) { screen->getBlackbox()->doXineramaPlacement()) {
RectList availableAreas = screen->allAvailableAreas(); RectList availableAreas = screen->allAvailableAreas();
assert(availableAreas.size() > 0);
RectList::iterator it, end = availableAreas.end(); RectList::iterator it, end = availableAreas.end();
for (it = availableAreas.begin(); it != end; ++it) for (it = availableAreas.begin(); it != end; ++it)