Fixed toggle bug
This commit is contained in:
parent
7083cd088a
commit
15dcf0d113
1 changed files with 9 additions and 8 deletions
|
@ -147,11 +147,12 @@ Windowmenu::Windowmenu(FluxboxWindow *win) : Basemenu(win->getScreen()) {
|
||||||
|
|
||||||
update();
|
update();
|
||||||
|
|
||||||
setItemEnabled(1, window->hasTitlebar());
|
setItemEnabled(2, window->hasTitlebar());
|
||||||
setItemEnabled(2, window->isIconifiable());
|
setItemEnabled(3, window->isIconifiable());
|
||||||
setItemEnabled(3, window->isMaximizable());
|
setItemEnabled(4, window->isMaximizable());
|
||||||
setItemEnabled(8, window->isClosable());
|
setItemEnabled(9, window->isClosable());
|
||||||
setItemEnabled(9, window->hasTab());
|
setItemEnabled(10, window->hasTab());
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -162,9 +163,9 @@ Windowmenu::~Windowmenu(void) {
|
||||||
|
|
||||||
|
|
||||||
void Windowmenu::show(void) {
|
void Windowmenu::show(void) {
|
||||||
if (isItemEnabled(1)) setItemSelected(1, window->isShaded());
|
if (isItemEnabled(2)) setItemSelected(2, window->isShaded());
|
||||||
if (isItemEnabled(3)) setItemSelected(3, window->isMaximized());
|
if (isItemEnabled(4)) setItemSelected(4, window->isMaximized());
|
||||||
if (isItemEnabled(6)) setItemSelected(6, window->isStuck());
|
if (isItemEnabled(7)) setItemSelected(7, window->isStuck());
|
||||||
|
|
||||||
Basemenu::show();
|
Basemenu::show();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue