From 9272037c9d382c210b48379a209d89502ff48dd0 Mon Sep 17 00:00:00 2001
From: Paul Guslisty <pguslisty@productengine.com>
Date: Wed, 3 Mar 2010 09:47:58 +0200
Subject: Fixed normal bug EXT - 4572 (Click and hold the left mouse button
 doesn't let you browse tabbed IM floater)

- Set mouse capture to the tab container in case of some control \"grab\" it during mouse hovering over tab container.

--HG--
branch : product-engine
---
 indra/llui/lltabcontainer.cpp | 7 +++++++
 1 file changed, 7 insertions(+)

(limited to 'indra')

diff --git a/indra/llui/lltabcontainer.cpp b/indra/llui/lltabcontainer.cpp
index 30fc7babae..1dcfb4e296 100644
--- a/indra/llui/lltabcontainer.cpp
+++ b/indra/llui/lltabcontainer.cpp
@@ -2061,5 +2061,12 @@ void LLTabContainer::commitHoveredButton(S32 x, S32 y)
 				tuple->mButton->onCommit();
 			}
 		}
+		/**
+		 * EXT - 4572 (Click and hold the left mouse button doesn't let you browse tabbed IM floater)
+		 *
+		 * During hovering mouse(with left mouse button hold) over tabs, a newly just activated corresponding
+		 * to the tab(that is hovered in the given instant of time) panel may caught mouse capture.
+		 */
+		gFocusMgr.setMouseCapture(this);
 	}
 }
-- 
cgit v1.2.3