diff options
Diffstat (limited to 'src/Slit.hh')
-rw-r--r-- | src/Slit.hh | 7 |
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; |