aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMark Tiefenbruck <mark@fluxbox.org>2008-05-16 00:49:19 (GMT)
committerMark Tiefenbruck <mark@fluxbox.org>2008-05-16 00:49:19 (GMT)
commit4f8aa2519e08b67b81125f589187902884274216 (patch)
treed7b0e353e1518ef2996fc6cae06b9f7829bd9b13 /src
parent61b04e336632ff1cf0bf38ef6b35ebf29288060c (diff)
downloadfluxbox-4f8aa2519e08b67b81125f589187902884274216.zip
fluxbox-4f8aa2519e08b67b81125f589187902884274216.tar.bz2
fix updating struts when not using xinerama
Diffstat (limited to 'src')
-rw-r--r--src/Screen.cc2
1 files changed, 1 insertions, 1 deletions
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) {
1432 clearStrut(str->next()); 1432 clearStrut(str->next());
1433 int head = str->head() ? str->head() - 1 : 0; 1433 int head = str->head() ? str->head() - 1 : 0;
1434 /* The number of heads may have changed, be careful. */ 1434 /* The number of heads may have changed, be careful. */
1435 if (head < numHeads()) 1435 if (head < (numHeads() ? numHeads() : 1))
1436 m_head_areas[head]->clearStrut(str); 1436 m_head_areas[head]->clearStrut(str);
1437 // str is invalid now 1437 // str is invalid now
1438} 1438}