fix updating struts when not using xinerama

This commit is contained in:
Mark Tiefenbruck 2008-05-15 17:49:19 -07:00
parent 61b04e3366
commit 4f8aa2519e

View file

@ -1432,7 +1432,7 @@ void BScreen::clearStrut(Strut *str) {
clearStrut(str->next());
int head = str->head() ? str->head() - 1 : 0;
/* The number of heads may have changed, be careful. */
if (head < numHeads())
if (head < (numHeads() ? numHeads() : 1))
m_head_areas[head]->clearStrut(str);
// str is invalid now
}