diff options
author | Rick Pasetto <rick@lindenlab.com> | 2010-02-23 18:13:50 -0800 |
---|---|---|
committer | Rick Pasetto <rick@lindenlab.com> | 2010-02-23 18:13:50 -0800 |
commit | 262f34b25dbdde7940ef28ff02058f4ef12d92f1 (patch) | |
tree | 94cc86c4cded4e4839d871d41a073ccf6e4969ab /indra/newview/llpanelnearbymedia.cpp | |
parent | 8cf7dad209fd97c1ab822ef183e8a74faceeb3d8 (diff) |
FIX EXT-5517: clear hover face when cursor hovers over Nearby Media panel
Review #140
This isn't the most generalized solution, but it fixes the proximal
problem of selecting items in the Nearby Media panel, and is low risk
because the code change is isolated to that panel.
Diffstat (limited to 'indra/newview/llpanelnearbymedia.cpp')
-rw-r--r-- | indra/newview/llpanelnearbymedia.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/indra/newview/llpanelnearbymedia.cpp b/indra/newview/llpanelnearbymedia.cpp index 3b5192b07f..1d720ceb25 100644 --- a/indra/newview/llpanelnearbymedia.cpp +++ b/indra/newview/llpanelnearbymedia.cpp @@ -231,6 +231,7 @@ void LLPanelNearByMedia::reshape(S32 width, S32 height, BOOL called_from_parent) const F32 AUTO_CLOSE_FADE_TIME_START= 4.0f; const F32 AUTO_CLOSE_FADE_TIME_END = 5.0f; +/*virtual*/ void LLPanelNearByMedia::draw() { //LLUICtrl* new_top = gFocusMgr.getTopCtrl(); @@ -265,6 +266,21 @@ void LLPanelNearByMedia::draw() } } +/*virtual*/ +BOOL LLPanelNearByMedia::handleHover(S32 x, S32 y, MASK mask) +{ + LLPanel::handleHover(x, y, mask); + + // If we are hovering over this panel, make sure to clear any hovered media + // ID. Note that the more general solution would be to clear this ID when + // the mouse leaves the in-scene view, but that proved to be problematic. + // See EXT-5517 + LLViewerMediaFocus::getInstance()->clearHover(); + + // Always handle + return true; +} + bool LLPanelNearByMedia::getParcelAudioAutoStart() { return mParcelAudioAutoStart; |