From 5000d1d38f18cbc0008cac2e73845bc618056f6e Mon Sep 17 00:00:00 2001 From: Tametomo Date: Fri, 12 Jun 2009 14:04:29 -0600 Subject: Fixed Viewport from acknowledging clicks from widgets on top of it when they happened within a contained widget. Signed-off-by: Tametomo --- src/gui/viewport.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gui/viewport.cpp b/src/gui/viewport.cpp index 61c17ac8..4d8ca717 100644 --- a/src/gui/viewport.cpp +++ b/src/gui/viewport.cpp @@ -295,6 +295,9 @@ void Viewport::_drawPath(Graphics *graphics, const Path &path) void Viewport::mousePressed(gcn::MouseEvent &event) { + if (event.getSource() != this) + return; + // Check if we are alive and kickin' if (!mMap || !player_node || !player_node->isAlive()) return; -- cgit v1.2.3-70-g09d2