Don't require the user to hold the mouse perfectly still when click-opening the

tab menu.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39482 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2010-11-18 15:55:15 +00:00
parent b28dba722e
commit d4443633cc

View File

@ -1070,7 +1070,11 @@ TermWindow::TabRightClicked(SmartTabView* tabView, BPoint point, int32 index)
popUpMenu->AddItem(new BMenuItem(B_TRANSLATE("Close tab"), message));
popUpMenu->SetAsyncAutoDestruct(true);
popUpMenu->SetTargetForItems(BMessenger(this));
popUpMenu->Go(tabView->ConvertToScreen(point), true, true, true);
BPoint screenWhere = tabView->ConvertToScreen(point);
BRect mouseRect(screenWhere, screenWhere);
mouseRect.InsetBy(-4.0, -4.0);
popUpMenu->Go(screenWhere, true, true, mouseRect, true);
}