diff options
author | fluxgen <fluxgen> | 2002-01-05 15:44:15 (GMT) |
---|---|---|
committer | fluxgen <fluxgen> | 2002-01-05 15:44:15 (GMT) |
commit | 15dcf0d113acabf1a513726c70c29cf418d6e2c2 (patch) | |
tree | fe1640d520db4088c56e6581798968d81dbc4cb0 /src/Windowmenu.cc | |
parent | 7083cd088ac8938ea892477189f9e7627a5c7d4d (diff) | |
download | fluxbox-15dcf0d113acabf1a513726c70c29cf418d6e2c2.zip fluxbox-15dcf0d113acabf1a513726c70c29cf418d6e2c2.tar.bz2 |
Fixed toggle bug
Diffstat (limited to 'src/Windowmenu.cc')
-rw-r--r-- | src/Windowmenu.cc | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/src/Windowmenu.cc b/src/Windowmenu.cc index 652bd68..613d6a4 100644 --- a/src/Windowmenu.cc +++ b/src/Windowmenu.cc | |||
@@ -147,11 +147,12 @@ Windowmenu::Windowmenu(FluxboxWindow *win) : Basemenu(win->getScreen()) { | |||
147 | 147 | ||
148 | update(); | 148 | update(); |
149 | 149 | ||
150 | setItemEnabled(1, window->hasTitlebar()); | 150 | setItemEnabled(2, window->hasTitlebar()); |
151 | setItemEnabled(2, window->isIconifiable()); | 151 | setItemEnabled(3, window->isIconifiable()); |
152 | setItemEnabled(3, window->isMaximizable()); | 152 | setItemEnabled(4, window->isMaximizable()); |
153 | setItemEnabled(8, window->isClosable()); | 153 | setItemEnabled(9, window->isClosable()); |
154 | setItemEnabled(9, window->hasTab()); | 154 | setItemEnabled(10, window->hasTab()); |
155 | |||
155 | } | 156 | } |
156 | 157 | ||
157 | 158 | ||
@@ -162,9 +163,9 @@ Windowmenu::~Windowmenu(void) { | |||
162 | 163 | ||
163 | 164 | ||
164 | void Windowmenu::show(void) { | 165 | void Windowmenu::show(void) { |
165 | if (isItemEnabled(1)) setItemSelected(1, window->isShaded()); | 166 | if (isItemEnabled(2)) setItemSelected(2, window->isShaded()); |
166 | if (isItemEnabled(3)) setItemSelected(3, window->isMaximized()); | 167 | if (isItemEnabled(4)) setItemSelected(4, window->isMaximized()); |
167 | if (isItemEnabled(6)) setItemSelected(6, window->isStuck()); | 168 | if (isItemEnabled(7)) setItemSelected(7, window->isStuck()); |
168 | 169 | ||
169 | Basemenu::show(); | 170 | Basemenu::show(); |
170 | } | 171 | } |