aboutsummaryrefslogtreecommitdiff
path: root/src/Slit.hh
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.hh
parent2f130ce836c85f40df95a35174fff0cbd0242834 (diff)
downloadfluxbox_pavel-9212e1d7c81934720d764c03f2d27e41d31edb56.zip
fluxbox_pavel-9212e1d7c81934720d764c03f2d27e41d31edb56.tar.bz2
an empty slit without autoHide but with clients in the slitlist file still created a strut
Diffstat (limited to 'src/Slit.hh')
-rw-r--r--src/Slit.hh7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/Slit.hh b/src/Slit.hh
index ef1c58e..06a8a25 100644
--- a/src/Slit.hh
+++ b/src/Slit.hh
@@ -68,8 +68,8 @@ public:
68 Slit(BScreen &screen, FbTk::XLayer &layer, const char *filename = 0); 68 Slit(BScreen &screen, FbTk::XLayer &layer, const char *filename = 0);
69 virtual ~Slit(); 69 virtual ~Slit();
70 70
71 void show() { frame.window.show(); } 71 void show() { frame.window.show(); m_visible = true; }
72 void hide() { frame.window.hide(); } 72 void hide() { frame.window.hide(); m_visible = false; }
73 void setDirection(Direction dir); 73 void setDirection(Direction dir);
74 void setPlacement(Placement place); 74 void setPlacement(Placement place);
75 void addClient(Window clientwin); 75 void addClient(Window clientwin);
@@ -139,7 +139,8 @@ private:
139 void clearStrut(); 139 void clearStrut();
140 void updateStrut(); 140 void updateStrut();
141 141
142 bool m_hidden; 142 // m_hidden is for autohide, m_visible is the FbWindow state
143 bool m_hidden, m_visible;
143 144
144 BScreen &m_screen; 145 BScreen &m_screen;
145 FbTk::Timer m_timer; 146 FbTk::Timer m_timer;