Reverted r35463 and applied a patch by Stefano to handle the Terminal context
menu issue a different way. Should fix #5835. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36575 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1628,6 +1628,8 @@ BMenu::_Track(int* action, long start)
|
|||||||
} else if (item != NULL) {
|
} else if (item != NULL) {
|
||||||
_UpdateStateOpenSelect(item, location, navAreaRectAbove,
|
_UpdateStateOpenSelect(item, location, navAreaRectAbove,
|
||||||
navAreaRectBelow, selectedTime, navigationAreaTime);
|
navAreaRectBelow, selectedTime, navigationAreaTime);
|
||||||
|
if (!releasedOnce)
|
||||||
|
releasedOnce = true;
|
||||||
} else if (_OverSuper(screenLocation)) {
|
} else if (_OverSuper(screenLocation)) {
|
||||||
fState = MENU_STATE_TRACKING;
|
fState = MENU_STATE_TRACKING;
|
||||||
UnlockLooper();
|
UnlockLooper();
|
||||||
|
|||||||
@@ -419,6 +419,7 @@ BPopUpMenu::_StartTrack(BPoint where, bool autoInvoke, bool startOpened, BRect *
|
|||||||
|
|
||||||
// Show the menu's window
|
// Show the menu's window
|
||||||
Show();
|
Show();
|
||||||
|
snooze(50000);
|
||||||
BMenuItem *result = Track(startOpened, _specialRect);
|
BMenuItem *result = Track(startOpened, _specialRect);
|
||||||
if (result != NULL && autoInvoke)
|
if (result != NULL && autoInvoke)
|
||||||
result->Invoke();
|
result->Invoke();
|
||||||
|
|||||||
Reference in New Issue
Block a user