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:
parent
8cf06caec2
commit
8d3796ee38
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user