From 4f8aa2519e08b67b81125f589187902884274216 Mon Sep 17 00:00:00 2001 From: Mark Tiefenbruck <mark@fluxbox.org> Date: Thu, 15 May 2008 17:49:19 -0700 Subject: fix updating struts when not using xinerama --- src/Screen.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Screen.cc b/src/Screen.cc index 73b826b..b4905f2 100644 --- a/src/Screen.cc +++ b/src/Screen.cc @@ -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 } -- cgit v0.11.2