Allow right clicking notifications when on right clickable ui.

This commit is contained in:
Lirusaito
2019-01-14 01:08:10 -05:00
parent 15ef9140da
commit 062b8da2d3
2 changed files with 5 additions and 8 deletions

View File

@@ -294,7 +294,8 @@ LLGroupNotifyBox::~LLGroupNotifyBox()
// virtual // virtual
BOOL LLGroupNotifyBox::handleRightMouseDown(S32 x, S32 y, MASK mask) BOOL LLGroupNotifyBox::handleRightMouseDown(S32 x, S32 y, MASK mask)
{ {
moveToBack(); if (!LLPanel::handleRightMouseDown(x, y, mask))
moveToBack();
return TRUE; return TRUE;
} }

View File

@@ -486,13 +486,9 @@ BOOL LLNotifyBox::handleMouseUp(S32 x, S32 y, MASK mask)
// virtual // virtual
BOOL LLNotifyBox::handleRightMouseDown(S32 x, S32 y, MASK mask) BOOL LLNotifyBox::handleRightMouseDown(S32 x, S32 y, MASK mask)
{ {
if (!mIsTip) bool done = LLPanel::handleRightMouseDown(x, y, mask);
{ if (!done && !mIsTip) moveToBack(true);
moveToBack(true); return done || !mIsTip;
return TRUE;
}
return LLPanel::handleRightMouseDown(x, y, mask);
} }