active menu item wasn't getting reset properly when closed from [exec] with buttonpress

This commit is contained in:
markt 2007-03-19 06:18:25 +00:00
parent 063468ea66
commit d7eebb62bd
2 changed files with 6 additions and 4 deletions

View file

@ -1,6 +1,8 @@
(Format: Year/Month/Day)
Changes for 1.0rc3:
*07/03/19:
* Active menu item wasn't getting reset properly when menu closed (Mark)
FbTk/Menu.cc
* Fixed some problems with toolbar sizing (Mark + thanks Julien Trolet)
Toolbar.cc
*07/03/18:

View file

@ -883,11 +883,11 @@ void Menu::buttonReleaseEvent(XButtonEvent &re) {
re.x > ix && re.x < (signed) (ix + menu.item_w) &&
re.y > iy && re.y < (signed) (iy + theme().itemHeight())) {
menuitems[w]->click(re.button, re.time);
} else {
int old = m_active_index;
m_active_index = w;
clearItem(old);
}
int old = m_active_index;
m_active_index = w;
clearItem(old);
clearItem(w);
}
}