From 74c8c5c6aff988ca75753936ca70abad05bf99d3 Mon Sep 17 00:00:00 2001 From: Nat Goodspeed Date: Mon, 12 Sep 2011 23:09:51 -0400 Subject: CHOP-763: Turn off simulated-mouse-event childFromPoint() warnings. Initial implementation of "LLWindow" operations "mouseDown" etc. would always produce a warning in the response to the effect that the target LLView wasn't frontmost. These warnings were spurious; conversation with Richard makes it seem unlikely that the warning can be made real. Suppressing. --- indra/newview/llwindowlistener.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'indra/newview') diff --git a/indra/newview/llwindowlistener.cpp b/indra/newview/llwindowlistener.cpp index ac8e981c4e..6b3ae98ffc 100644 --- a/indra/newview/llwindowlistener.cpp +++ b/indra/newview/llwindowlistener.cpp @@ -385,6 +385,11 @@ static void mouseEvent(const MouseFunc& func, const LLSD& request) << pos.mX << ", " << pos.mY << ")")); } +/*==========================================================================*| + // NEVER MIND: the LLView tree defines priority handler layers in + // front of the normal widget set, so this has never yet produced + // anything but spam warnings. (sigh) + // recursive childFromPoint() should give us the frontmost, leafmost // widget at the specified (x, y). LLView* frontmost = root->childFromPoint(pos.mX, pos.mY, true); @@ -395,6 +400,7 @@ static void mouseEvent(const MouseFunc& func, const LLSD& request) << "', but frontmost LLView at (" << pos.mX << ", " << pos.mY << ") is '" << LLView::getPathname(frontmost) << "'")); } +|*==========================================================================*/ // Instantiate a TemporaryDrilldownFunc to route incoming mouse events // to the target LLView*. But put it on the heap since "path" is -- cgit v1.2.3