aboutsummaryrefslogtreecommitdiff
path: root/src/Slit.cc
diff options
context:
space:
mode:
authormarkt <markt>2007-02-17 17:40:50 (GMT)
committermarkt <markt>2007-02-17 17:40:50 (GMT)
commit9212e1d7c81934720d764c03f2d27e41d31edb56 (patch)
tree3abb7b27719fb496320b78dd1e64b9c846887e26 /src/Slit.cc
parent2f130ce836c85f40df95a35174fff0cbd0242834 (diff)
downloadfluxbox-9212e1d7c81934720d764c03f2d27e41d31edb56.zip
fluxbox-9212e1d7c81934720d764c03f2d27e41d31edb56.tar.bz2
an empty slit without autoHide but with clients in the slitlist file still created a strut
Diffstat (limited to 'src/Slit.cc')
-rw-r--r--src/Slit.cc9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/Slit.cc b/src/Slit.cc
index fb12ca6..564523a 100644
--- a/src/Slit.cc
+++ b/src/Slit.cc
@@ -259,7 +259,7 @@ unsigned int Slit::s_eventmask = SubstructureRedirectMask | ButtonPressMask |
259 EnterWindowMask | LeaveWindowMask | ExposureMask; 259 EnterWindowMask | LeaveWindowMask | ExposureMask;
260 260
261Slit::Slit(BScreen &scr, FbTk::XLayer &layer, const char *filename) 261Slit::Slit(BScreen &scr, FbTk::XLayer &layer, const char *filename)
262 : m_hidden(false), 262 : m_hidden(false), m_visible(false),
263 m_screen(scr), 263 m_screen(scr),
264 m_clientlist_menu(scr.menuTheme(), 264 m_clientlist_menu(scr.menuTheme(),
265 scr.imageControl(), 265 scr.imageControl(),
@@ -369,8 +369,7 @@ void Slit::updateStrut() {
369 clearStrut(); 369 clearStrut();
370 // no need for area if we're autohiding or set maximize over 370 // no need for area if we're autohiding or set maximize over
371 // or if we dont have any clients 371 // or if we dont have any clients
372 if (doAutoHide() || *m_rc_maximize_over || 372 if (doAutoHide() || *m_rc_maximize_over || !m_visible) {
373 clients().empty()) {
374 // update screen area if we had a strut before 373 // update screen area if we had a strut before
375 if (had_strut) 374 if (had_strut)
376 screen().updateAvailableWorkspaceArea(); 375 screen().updateAvailableWorkspaceArea();
@@ -720,9 +719,9 @@ void Slit::reconfigure() {
720 719
721 // did we actually use slit slots 720 // did we actually use slit slots
722 if (num_windows == 0) 721 if (num_windows == 0)
723 frame.window.hide(); 722 hide();
724 else 723 else
725 frame.window.show(); 724 show();
726 725
727 int x = 0, y = 0; 726 int x = 0, y = 0;
728 height_inc = false; 727 height_inc = false;