summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2007-02-02 15:14:42 +0000
committerMatthias Melcher <fltk@matthiasm.com>2007-02-02 15:14:42 +0000
commitc005f9956f0a241209dd1b0ebfed9beba79ec3e5 (patch)
tree5dd6cc6552868f8c48e15d46fd37111d67974145 /src
parent3df9bdf5c5919d99d054aba61319d4672d5da311 (diff)
Added glut files to vc2005 solution.
Fixed popup menus that would not stay popped up when clicke once and the first item was disabled. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5655 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
-rw-r--r--src/Fl_Menu.cxx10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/Fl_Menu.cxx b/src/Fl_Menu.cxx
index f0739e9a0..b8337d4d6 100644
--- a/src/Fl_Menu.cxx
+++ b/src/Fl_Menu.cxx
@@ -718,14 +718,6 @@ int menuwindow::early_hide_handle(int e) {
pp.state = PUSH_STATE;
}} return 1;
case FL_RELEASE:
- // do nothing if they try to pick inactive items
- if (pp.current_item && !pp.current_item->activevisible()) {
- if (pp.state==INITIAL_STATE) {
- setitem(0, -1, 0);
- pp.state = DONE_STATE;
- }
- return 1;
- }
// Mouse must either be held down/dragged some, or this must be
// the second click (not the one that popped up the menu):
if (!Fl::event_is_click() || pp.state == PUSH_STATE ||
@@ -738,6 +730,8 @@ int menuwindow::early_hide_handle(int e) {
pp.p[pp.menu_number]->redraw();
} else
#endif
+ // do nothing if they try to pick inactive items
+ if (!pp.current_item || pp.current_item->activevisible())
pp.state = DONE_STATE;
}
return 1;