active menu item wasn't getting reset properly when closed from [exec] with buttonpress
This commit is contained in:
parent
063468ea66
commit
d7eebb62bd
2 changed files with 6 additions and 4 deletions
|
@ -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:
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue