os x: mouse-down for menu bar should stay in flight until after on-demand is called (to avoid getting the menu event handler stuck)

svn: r4948
This commit is contained in:
Matthew Flatt 2006-11-26 23:23:03 +00:00
parent 8cf06caec2
commit 8d3796ee38

View File

@ -338,7 +338,8 @@ void wxApp::doMacMouseDown(void)
}
}
if (windowPart != inContent) {
if ((windowPart != inContent)
&& (windowPart != inMenuBar)) {
/* We've gotten far enough handling the mouse-down event that
mouse-up events are ok to receive again: */
wxMouseEventHandled();
@ -364,6 +365,8 @@ void wxApp::doMacMouseDown(void)
theMacWxFrame->OnMenuClick();
}
wxMouseEventHandled();
wxTracking();
wxPrepareMenuDraw();
menuResult = MenuSelect(cCurrentEvent.where);