active menu item wasn't getting reset properly when closed from [exec] with buttonpress
markt markt
2 files changed,
6 insertions(+),
4 deletions(-)
M
src/FbTk/Menu.cc
→
src/FbTk/Menu.cc
@@ -883,11 +883,11 @@ if (m_active_index == w && isItemEnabled(w) &&
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); } }