STORM-733 FIXED Build Tools floater now has inactive floater transparency when opened (because it's not focused by default).

meow-7.2.2
Vadim ProductEngine 2010-12-07 13:45:29 +02:00
parent 81313cb304
commit 2b70e8e001
1 changed files with 4 additions and 3 deletions

View File

@ -1,4 +1,5 @@
/**
* @file llfloater.cpp
* @brief LLFloater base class
*
@ -1189,7 +1190,7 @@ void LLFloater::setFocus( BOOL b )
last_focus->setFocus(TRUE);
}
}
updateTransparency(this, b ? TT_ACTIVE : TT_INACTIVE);
updateTransparency(b ? TT_ACTIVE : TT_INACTIVE);
}
// virtual
@ -1463,8 +1464,8 @@ void LLFloater::setFrontmost(BOOL take_focus)
// so we need to query our parent directly
((LLFloaterView*)getParent())->bringToFront(this, take_focus);
// Make sure we use the active floater transparency settings (STORM-732).
updateTransparency(TT_ACTIVE);
// Make sure to set the appropriate transparency type (STORM-732).
updateTransparency(hasFocus() || getIsChrome() ? TT_ACTIVE : TT_INACTIVE);
}
}