summaryrefslogtreecommitdiff
path: root/indra/newview/llfloaterhud.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/llfloaterhud.cpp')
-rw-r--r--indra/newview/llfloaterhud.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/indra/newview/llfloaterhud.cpp b/indra/newview/llfloaterhud.cpp
index 7f311be9fd..12b1f0b4f1 100644
--- a/indra/newview/llfloaterhud.cpp
+++ b/indra/newview/llfloaterhud.cpp
@@ -29,16 +29,20 @@ LLFloaterHUD::LLFloaterHUD()
: LLFloater("floater_hud"),
mWebBrowser(0)
{
+ // Create floater from its XML definition
+ LLUICtrlFactory::getInstance()->buildFloater(this, "floater_hud.xml");
+
// Don't grab the focus as it will impede performing in-world actions
// while using the HUD
- setAutoFocus(FALSE);
+ setIsChrome(TRUE);
+
+ // Chrome doesn't show the window title by default, but here we
+ // want to show it.
+ setTitleVisible(true);
// Opaque background since we never get the focus
setBackgroundOpaque(TRUE);
- // Create floater from its XML definition
- LLUICtrlFactory::getInstance()->buildFloater(this, "floater_hud.xml");
-
// Position floater based on saved location
LLRect saved_position_rect = gSavedSettings.getRect("FloaterHUDRect");
reshape(saved_position_rect.getWidth(), saved_position_rect.getHeight(), FALSE);
@@ -47,12 +51,14 @@ LLFloaterHUD::LLFloaterHUD()
mWebBrowser = getChild<LLWebBrowserCtrl>("floater_hud_browser" );
if (mWebBrowser)
{
- // Always refresh the browser
- mWebBrowser->setAlwaysRefresh(true);
-
// Open links in internal browser
mWebBrowser->setOpenInExternalBrowser(false);
+ // This is a "chrome" floater, so we don't want anything to
+ // take focus (as the user needs to be able to walk with
+ // arrow keys during tutorial).
+ mWebBrowser->setTakeFocusOnClick(false);
+
LLString language(gSavedSettings.getString("Language"));
if(language == "default")
{
@@ -110,9 +116,3 @@ void LLFloaterHUD::close()
{
if (sInstance) sInstance->close();
}
-
-void LLFloaterHUD::onFocusReceived()
-{
- // Never get the focus
- setFocus(FALSE);
-}