diff --git a/indra/newview/app_settings/settings.xml b/indra/newview/app_settings/settings.xml index 98336d37a..166f4b902 100644 --- a/indra/newview/app_settings/settings.xml +++ b/indra/newview/app_settings/settings.xml @@ -9,6 +9,17 @@ settings_rlv.xml + PhoenixIMAnnounceStealFocus + + Comment + Open a new IM tab when another person begins typing to you and announce that they are doing so. + Persist + 1 + Type + Boolean + Value + 0 + UseNewTargetOmegaCode Comment diff --git a/indra/newview/ascentprefschat.cpp b/indra/newview/ascentprefschat.cpp index bc0a0f5ee..cf60bb715 100644 --- a/indra/newview/ascentprefschat.cpp +++ b/indra/newview/ascentprefschat.cpp @@ -328,6 +328,7 @@ void LLPrefsAscentChat::refreshValues() //Chat UI ----------------------------------------------------------------------------- mWoLfVerticalIMTabs = gSavedSettings.getBOOL("WoLfVerticalIMTabs"); mOtherChatsTornOff = gSavedSettings.getBOOL("OtherChatsTornOff"); + mIMAnnounceStealFocus = gSavedSettings.getBOOL("PhoenixIMAnnounceStealFocus"); mShowLocalChatFloaterBar = gSavedSettings.getBOOL("ShowLocalChatFloaterBar"); mHorizButt = gSavedSettings.getBOOL("ContactsUseHorizontalButtons"); mOneLineIMButt = gSavedSettings.getBOOL("UseConciseIMButtons"); @@ -561,6 +562,7 @@ void LLPrefsAscentChat::cancel() //Chat UI ----------------------------------------------------------------------------- gSavedSettings.setBOOL("WoLfVerticalIMTabs", mWoLfVerticalIMTabs); gSavedSettings.setBOOL("OtherChatsTornOff", mOtherChatsTornOff); + gSavedSettings.setBOOL("PhoenixIMAnnounceStealFocus", mIMAnnounceStealFocus); gSavedSettings.setBOOL("ShowLocalChatFloaterBar", mShowLocalChatFloaterBar); gSavedSettings.setBOOL("ContactsUseHorizontalButtons", mHorizButt); gSavedSettings.setBOOL("UseConciseIMButtons", mOneLineIMButt); diff --git a/indra/newview/ascentprefschat.h b/indra/newview/ascentprefschat.h index 700800941..aa0b91d9d 100644 --- a/indra/newview/ascentprefschat.h +++ b/indra/newview/ascentprefschat.h @@ -80,6 +80,7 @@ protected: //Chat UI ----------------------------------------------------------------------------- bool mWoLfVerticalIMTabs; bool mOtherChatsTornOff; + bool mIMAnnounceStealFocus; bool mShowLocalChatFloaterBar; bool mHorizButt; bool mOneLineIMButt; diff --git a/indra/newview/llimview.cpp b/indra/newview/llimview.cpp index 64be462f7..b04a2cd18 100644 --- a/indra/newview/llimview.cpp +++ b/indra/newview/llimview.cpp @@ -766,7 +766,10 @@ LLUUID LLIMMgr::addSession( floater->open(); } //mTabContainer->selectTabPanel(panel); - floater->setInputFocus(TRUE); + if(gSavedSettings.getBOOL("PhoenixIMAnnounceStealFocus")) + { + floater->setInputFocus(TRUE); + } return floater->getSessionID(); } @@ -816,7 +819,10 @@ LLUUID LLIMMgr::addSession( floater->open(); } //mTabContainer->selectTabPanel(panel); - floater->setInputFocus(TRUE); + if(gSavedSettings.getBOOL("PhoenixIMAnnounceStealFocus")) + { + floater->setInputFocus(TRUE); + } return floater->getSessionID(); } diff --git a/indra/newview/skins/default/xui/en-us/panel_preferences_ascent_chat.xml b/indra/newview/skins/default/xui/en-us/panel_preferences_ascent_chat.xml index 4e53b9bd6..f5a8d8ca4 100644 --- a/indra/newview/skins/default/xui/en-us/panel_preferences_ascent_chat.xml +++ b/indra/newview/skins/default/xui/en-us/panel_preferences_ascent_chat.xml @@ -52,6 +52,7 @@ +