fix updating struts when not using xinerama
Mark Tiefenbruck mark@fluxbox.org
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
src/Screen.cc
→
src/Screen.cc
@@ -1432,7 +1432,7 @@ if (str->next())
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 }