FLTK logo

[master] 35f2827 - Keep indicator that menubar is still active (#551)

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.commit  ]
 
Previous Message ]Next Message ]

[master] 35f2827 - Keep indicator that menubar is still active (#551) "Matthias Melcher" Nov 23, 2022  
 
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 ]
 
     
Previous Message ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.