all repos — fluxbox @ d7eebb62bd02b491f81811242a17bd134792b3d9

custom fork of the fluxbox windowmanager

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

d7eebb62bd02b491f81811242a17bd134792b3d9

parent

063468ea6603aaf866e5d52d4f06bfb0714f1b2f

2 files changed, 6 insertions(+), 4 deletions(-)

jump to
M ChangeLogChangeLog

@@ -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:
M src/FbTk/Menu.ccsrc/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); } }