summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog2
-rw-r--r--src/FbTk/Menu.cc8
2 files changed, 6 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index d46c3fa..de5d99b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,8 @@
1 (Format: Year/Month/Day) 1 (Format: Year/Month/Day)
2Changes for 1.0rc3: 2Changes for 1.0rc3:
3*07/03/19: 3*07/03/19:
4 * Active menu item wasn't getting reset properly when menu closed (Mark)
5 FbTk/Menu.cc
4 * Fixed some problems with toolbar sizing (Mark + thanks Julien Trolet) 6 * Fixed some problems with toolbar sizing (Mark + thanks Julien Trolet)
5 Toolbar.cc 7 Toolbar.cc
6*07/03/18: 8*07/03/18:
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 }