diff options
author | Tametomo <irarice@gmail.com> | 2009-06-12 14:04:29 -0600 |
---|---|---|
committer | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2010-02-14 21:30:27 +0100 |
commit | 5000d1d38f18cbc0008cac2e73845bc618056f6e (patch) | |
tree | ea432822953acd5bb578d751c468cabe585c6774 /src/gui | |
parent | f70ce630b46df7d66d9297a1c59cf3ec6c81aa39 (diff) | |
download | Mana-5000d1d38f18cbc0008cac2e73845bc618056f6e.tar.gz Mana-5000d1d38f18cbc0008cac2e73845bc618056f6e.tar.bz2 Mana-5000d1d38f18cbc0008cac2e73845bc618056f6e.tar.xz Mana-5000d1d38f18cbc0008cac2e73845bc618056f6e.zip |
Fixed Viewport from acknowledging clicks from widgets on top of it when
they happened within a contained widget.
Signed-off-by: Tametomo <irarice@gmail.com>
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/viewport.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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; |