From a79e95c8e12b22131dbe8c91ff8330dd83a5616e Mon Sep 17 00:00:00 2001 From: Tonya Souther Date: Mon, 10 Oct 2011 18:32:01 -0500 Subject: [PATCH] Don't show a tooltip if the app window doesn't have focus. --- indra/llui/llview.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/indra/llui/llview.cpp b/indra/llui/llview.cpp index 659a54cc6e..72cd9d05c0 100644 --- a/indra/llui/llview.cpp +++ b/indra/llui/llview.cpp @@ -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())