From 202b87ae568abab34f8793856a928996a2e63ec6 Mon Sep 17 00:00:00 2001 From: fluxgen Date: Thu, 6 Jul 2006 20:46:38 +0000 Subject: dont use a strut if slit is empty --- src/Slit.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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() { bool had_strut = m_strut ? true : false; clearStrut(); // no need for area if we're autohiding or set maximize over - if (doAutoHide() || *m_rc_maximize_over) { + // or if we dont have any clients + if (doAutoHide() || *m_rc_maximize_over || + clients().empty()) { // update screen area if we had a strut before if (had_strut) screen().updateAvailableWorkspaceArea(); -- cgit v0.11.2