aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2006-07-06 20:46:38 (GMT)
committerfluxgen <fluxgen>2006-07-06 20:46:38 (GMT)
commit202b87ae568abab34f8793856a928996a2e63ec6 (patch)
tree2028b6338e1d578dcc3f7a3dc53b368c06073543
parent1cfd936fb3efcdfcf3dd31313a83ceb5473237c4 (diff)
downloadfluxbox_paul-202b87ae568abab34f8793856a928996a2e63ec6.zip
fluxbox_paul-202b87ae568abab34f8793856a928996a2e63ec6.tar.bz2
dont use a strut if slit is empty
-rw-r--r--src/Slit.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Slit.cc b/src/Slit.cc
index 265bf8b..d2d33b8 100644
--- a/src/Slit.cc
+++ b/src/Slit.cc
@@ -359,7 +359,9 @@ void Slit::updateStrut() {
359 bool had_strut = m_strut ? true : false; 359 bool had_strut = m_strut ? true : false;
360 clearStrut(); 360 clearStrut();
361 // no need for area if we're autohiding or set maximize over 361 // no need for area if we're autohiding or set maximize over
362 if (doAutoHide() || *m_rc_maximize_over) { 362 // or if we dont have any clients
363 if (doAutoHide() || *m_rc_maximize_over ||
364 clients().empty()) {
363 // update screen area if we had a strut before 365 // update screen area if we had a strut before
364 if (had_strut) 366 if (had_strut)
365 screen().updateAvailableWorkspaceArea(); 367 screen().updateAvailableWorkspaceArea();