|
|
commit 35f2827d1f76468926c362d67eb992930c88853f
Author: Matthias Melcher <github@matthiasm.com>
AuthorDate: Wed Nov 23 12:33:14 2022 +0100
Commit: GitHub <noreply@github.com>
CommitDate: Wed Nov 23 12:33:14 2022 +0100
Keep indicator that menubar is still active (#551)
src/Fl_Menu.cxx | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git src/Fl_Menu.cxx src/Fl_Menu.cxx
index 06a7e92..f2d19a7 100644
--- src/Fl_Menu.cxx
+++ src/Fl_Menu.cxx
@@ -842,9 +842,10 @@ int menuwindow::handle_part1(int e) {
return 1;
}
if (pp.current_item && pp.menu_number==0 && !pp.current_item->submenu()) {
- if (e==FL_PUSH)
+ if (e==FL_PUSH) {
pp.state = DONE_STATE;
- setitem(0, -1, 0);
+ setitem(0, -1, 0);
+ }
return 1;
}
// all others can stay selected
[ Direct Link to Message ] | |
|
| |