mirror of
https://github.com/fltk/fltk.git
synced 2026-06-05 16:12:13 +08:00
STR #1109: Klickin on an inactive item would keep the menubar from realizing the end of the pulldown phase and swallow the next click.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4697 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
+4
-1
@@ -612,7 +612,10 @@ int menuwindow::handle(int e) {
|
|||||||
}} return 1;
|
}} return 1;
|
||||||
case FL_RELEASE:
|
case FL_RELEASE:
|
||||||
// do nothing if they try to pick inactive items
|
// do nothing if they try to pick inactive items
|
||||||
if (pp.current_item && !pp.current_item->activevisible()) return 1;
|
if (pp.current_item && !pp.current_item->activevisible()) {
|
||||||
|
pp.state = DONE_STATE;
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
// Mouse must either be held down/dragged some, or this must be
|
// Mouse must either be held down/dragged some, or this must be
|
||||||
// the second click (not the one that popped up the menu):
|
// the second click (not the one that popped up the menu):
|
||||||
if (!Fl::event_is_click() || pp.state == PUSH_STATE ||
|
if (!Fl::event_is_click() || pp.state == PUSH_STATE ||
|
||||||
|
|||||||
Reference in New Issue
Block a user