Don't show a tooltip if the app window doesn't have focus.

meow-7.2.2
Tonya Souther 2011-10-10 18:32:01 -05:00
parent 9c12d31e80
commit a79e95c8e1
1 changed files with 6 additions and 0 deletions

View File

@ -706,6 +706,12 @@ BOOL LLView::handleToolTip(S32 x, S32 y, MASK mask)
{
BOOL handled = FALSE;
// TS: Don't bother with a tooltip unless the app itself has focus.
if (!gFocusMgr.getAppHasFocus())
{
return TRUE;
}
// parents provide tooltips first, which are optionally
// overridden by children, in case child is mouse_opaque
if (!mToolTipMsg.empty())