From 15dcf0d113acabf1a513726c70c29cf418d6e2c2 Mon Sep 17 00:00:00 2001 From: fluxgen Date: Sat, 5 Jan 2002 15:44:15 +0000 Subject: Fixed toggle bug --- src/Windowmenu.cc | 17 +++++++++-------- 1 file 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()) { update(); - setItemEnabled(1, window->hasTitlebar()); - setItemEnabled(2, window->isIconifiable()); - setItemEnabled(3, window->isMaximizable()); - setItemEnabled(8, window->isClosable()); - setItemEnabled(9, window->hasTab()); + setItemEnabled(2, window->hasTitlebar()); + setItemEnabled(3, window->isIconifiable()); + setItemEnabled(4, window->isMaximizable()); + setItemEnabled(9, window->isClosable()); + setItemEnabled(10, window->hasTab()); + } @@ -162,9 +163,9 @@ Windowmenu::~Windowmenu(void) { void Windowmenu::show(void) { - if (isItemEnabled(1)) setItemSelected(1, window->isShaded()); - if (isItemEnabled(3)) setItemSelected(3, window->isMaximized()); - if (isItemEnabled(6)) setItemSelected(6, window->isStuck()); + if (isItemEnabled(2)) setItemSelected(2, window->isShaded()); + if (isItemEnabled(4)) setItemSelected(4, window->isMaximized()); + if (isItemEnabled(7)) setItemSelected(7, window->isStuck()); Basemenu::show(); } -- cgit v0.11.2