diff options
author | fluxgen <fluxgen> | 2006-07-06 20:46:38 (GMT) |
---|---|---|
committer | fluxgen <fluxgen> | 2006-07-06 20:46:38 (GMT) |
commit | 202b87ae568abab34f8793856a928996a2e63ec6 (patch) | |
tree | 2028b6338e1d578dcc3f7a3dc53b368c06073543 /src | |
parent | 1cfd936fb3efcdfcf3dd31313a83ceb5473237c4 (diff) | |
download | fluxbox-202b87ae568abab34f8793856a928996a2e63ec6.zip fluxbox-202b87ae568abab34f8793856a928996a2e63ec6.tar.bz2 |
dont use a strut if slit is empty
Diffstat (limited to 'src')
-rw-r--r-- | src/Slit.cc | 4 |
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(); |