move an assert to its proper place
This commit is contained in:
parent
e18ff901fc
commit
b7ab0001ce
2 changed files with 1 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue