diff options
author | markt <markt> | 2007-03-19 06:18:25 (GMT) |
---|---|---|
committer | markt <markt> | 2007-03-19 06:18:25 (GMT) |
commit | d7eebb62bd02b491f81811242a17bd134792b3d9 (patch) | |
tree | 27649cfa857534302fb487f6961af28355398a28 /src/FbTk/Menu.cc | |
parent | 063468ea6603aaf866e5d52d4f06bfb0714f1b2f (diff) | |
download | fluxbox-d7eebb62bd02b491f81811242a17bd134792b3d9.zip fluxbox-d7eebb62bd02b491f81811242a17bd134792b3d9.tar.bz2 |
active menu item wasn't getting reset properly when closed from [exec] with buttonpress
Diffstat (limited to 'src/FbTk/Menu.cc')
-rw-r--r-- | src/FbTk/Menu.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/FbTk/Menu.cc b/src/FbTk/Menu.cc index 1162b53..008eebd 100644 --- a/src/FbTk/Menu.cc +++ b/src/FbTk/Menu.cc | |||
@@ -883,11 +883,11 @@ void Menu::buttonReleaseEvent(XButtonEvent &re) { | |||
883 | re.x > ix && re.x < (signed) (ix + menu.item_w) && | 883 | re.x > ix && re.x < (signed) (ix + menu.item_w) && |
884 | re.y > iy && re.y < (signed) (iy + theme().itemHeight())) { | 884 | re.y > iy && re.y < (signed) (iy + theme().itemHeight())) { |
885 | menuitems[w]->click(re.button, re.time); | 885 | menuitems[w]->click(re.button, re.time); |
886 | } else { | ||
887 | int old = m_active_index; | ||
888 | m_active_index = w; | ||
889 | clearItem(old); | ||
886 | } | 890 | } |
887 | |||
888 | int old = m_active_index; | ||
889 | m_active_index = w; | ||
890 | clearItem(old); | ||
891 | clearItem(w); | 891 | clearItem(w); |
892 | } | 892 | } |
893 | } | 893 | } |