From 1fba4b8ad7bc89a68a5649cbcd56ee7d208fcb0b Mon Sep 17 00:00:00 2001 From: Nicky Date: Sun, 20 Nov 2011 01:06:17 +0100 Subject: [PATCH] FIRE-3842; handle right mouse button in LLSideTrayButton. --- indra/newview/llsidetray.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/indra/newview/llsidetray.cpp b/indra/newview/llsidetray.cpp index 05313e5f7b..a8dbe306fa 100644 --- a/indra/newview/llsidetray.cpp +++ b/indra/newview/llsidetray.cpp @@ -106,6 +106,18 @@ bool LLSideTray::instanceCreated () class LLSideTrayButton : public LLButton { public: + // FIRE-3842; handle right mouse here and swallow it, so sidebars do not get confused. + BOOL handleRightMouseDown(S32 x, S32 y, MASK mask) + { + return FALSE; + } + + BOOL handleRightMouseUp(S32 x, S32 y, MASK mask) + { + return FALSE; + } + // + /*virtual*/ BOOL handleMouseDown(S32 x, S32 y, MASK mask) { // Route future Mouse messages here preemptively. (Release on mouse up.)