diff options
author | Andrew Dyukov <adyukov@productengine.com> | 2009-12-07 15:44:44 +0200 |
---|---|---|
committer | Andrew Dyukov <adyukov@productengine.com> | 2009-12-07 15:44:44 +0200 |
commit | 13dd7431a350fc2515a6b7f30995fbc47f1bc77b (patch) | |
tree | 6b0167414f30581c8b204f30d1d06d5bd8808560 | |
parent | 6eee48e16e75c1f70bb1cbce9544bad63d9621cf (diff) |
Implemented normal task EXT-3084 (Update Notifications window behavior).
- Added hiding window when focus is lost.
--HG--
branch : product-engine
-rw-r--r-- | indra/newview/llsyswellwindow.cpp | 6 | ||||
-rw-r--r-- | indra/newview/llsyswellwindow.h | 5 |
2 files changed, 11 insertions, 0 deletions
diff --git a/indra/newview/llsyswellwindow.cpp b/indra/newview/llsyswellwindow.cpp index e5a4b456a0..18877e3895 100644 --- a/indra/newview/llsyswellwindow.cpp +++ b/indra/newview/llsyswellwindow.cpp @@ -175,6 +175,12 @@ void LLSysWellWindow::setVisible(BOOL visible) } //--------------------------------------------------------------------------------- +void LLSysWellWindow::onFocusLost() +{ + setVisible(false); +} + +//--------------------------------------------------------------------------------- void LLSysWellWindow::setDocked(bool docked, bool pop_on_undock) { LLDockableFloater::setDocked(docked, pop_on_undock); diff --git a/indra/newview/llsyswellwindow.h b/indra/newview/llsyswellwindow.h index d2c494bfe8..18715ceeb5 100644 --- a/indra/newview/llsyswellwindow.h +++ b/indra/newview/llsyswellwindow.h @@ -73,6 +73,11 @@ public: // override LLFloater's minimization according to EXT-1216 /*virtual*/ void setMinimized(BOOL minimize); + /** + * Hides window when user clicks away from it (EXT-3084) + */ + /*virtual*/ void onFocusLost(); + void onStartUpToastClick(S32 x, S32 y, MASK mask); // size constants for the window and for its elements |