aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2004-06-14 12:23:57 (GMT)
committerfluxgen <fluxgen>2004-06-14 12:23:57 (GMT)
commit3890049e3c44999f4ff26912e48a14b0dd17a4da (patch)
treee00c685764187e28f67380c9aff1c35a54ea986f /src/FbTk
parent463c7dab18d78973671c7d3aba3c47d62a30cc00 (diff)
downloadfluxbox-3890049e3c44999f4ff26912e48a14b0dd17a4da.zip
fluxbox-3890049e3c44999f4ff26912e48a14b0dd17a4da.tar.bz2
title raise lower when title visibility changes
Diffstat (limited to 'src/FbTk')
-rw-r--r--src/FbTk/Menu.hh10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/FbTk/Menu.hh b/src/FbTk/Menu.hh
index 2d2d62d..625a7d7 100644
--- a/src/FbTk/Menu.hh
+++ b/src/FbTk/Menu.hh
@@ -22,7 +22,7 @@
22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23// DEALINGS IN THE SOFTWARE. 23// DEALINGS IN THE SOFTWARE.
24 24
25// $Id: Menu.hh,v 1.35 2004/06/13 10:58:34 fluxgen Exp $ 25// $Id: Menu.hh,v 1.36 2004/06/14 12:23:57 fluxgen Exp $
26 26
27#ifndef FBTK_MENU_HH 27#ifndef FBTK_MENU_HH
28#define FBTK_MENU_HH 28#define FBTK_MENU_HH
@@ -159,7 +159,13 @@ public:
159 159
160protected: 160protected:
161 161
162 inline void setTitleVisibility(bool b) { title_vis = b; m_need_update = true; } 162 inline void setTitleVisibility(bool b) {
163 title_vis = b; m_need_update = true;
164 if (!b)
165 titleWindow().lower();
166 else
167 titleWindow().raise();
168 }
163 169
164 virtual void itemSelected(int button, unsigned int index) { } 170 virtual void itemSelected(int button, unsigned int index) { }
165 virtual int drawItem(unsigned int index, bool highlight = false, 171 virtual int drawItem(unsigned int index, bool highlight = false,