aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/lltoolmgr.cpp
diff options
context:
space:
mode:
authorArmin Weatherwax2010-06-14 12:04:49 +0200
committerArmin Weatherwax2010-09-23 15:38:25 +0200
commit35df5441d3e2789663532c948731aff3a1e04728 (patch)
treeac7674289784a5f96106ea507637055a8dada78a /linden/indra/newview/lltoolmgr.cpp
parentChanged version to Experimental 2010.09.18 (diff)
downloadmeta-impy-35df5441d3e2789663532c948731aff3a1e04728.zip
meta-impy-35df5441d3e2789663532c948731aff3a1e04728.tar.gz
meta-impy-35df5441d3e2789663532c948731aff3a1e04728.tar.bz2
meta-impy-35df5441d3e2789663532c948731aff3a1e04728.tar.xz
llmediaplugins first step
Diffstat (limited to 'linden/indra/newview/lltoolmgr.cpp')
-rw-r--r--linden/indra/newview/lltoolmgr.cpp14
1 files changed, 6 insertions, 8 deletions
diff --git a/linden/indra/newview/lltoolmgr.cpp b/linden/indra/newview/lltoolmgr.cpp
index 3a776d1..8204374 100644
--- a/linden/indra/newview/lltoolmgr.cpp
+++ b/linden/indra/newview/lltoolmgr.cpp
@@ -281,22 +281,20 @@ void LLToolMgr::clearTransientTool()
281} 281}
282 282
283 283
284// The "gun tool", used for handling mouselook, captures the mouse and
285// locks it within the window. When the app loses focus we need to
286// release this locking.
287void LLToolMgr::onAppFocusLost() 284void LLToolMgr::onAppFocusLost()
288{ 285{
289 mSavedTool = mBaseTool; 286 if (mSelectedTool)
290 mBaseTool = gToolNull; 287 {
288 mSelectedTool->handleDeselect();
289 }
291 updateToolStatus(); 290 updateToolStatus();
292} 291}
293 292
294void LLToolMgr::onAppFocusGained() 293void LLToolMgr::onAppFocusGained()
295{ 294{
296 if (mSavedTool) 295 if (mSelectedTool)
297 { 296 {
298 mBaseTool = mSavedTool; 297 mSelectedTool->handleSelect();
299 mSavedTool = NULL;
300 } 298 }
301 updateToolStatus(); 299 updateToolStatus();
302} 300}