diff options
Diffstat (limited to 'src/FbTk')
-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 | } |