From cfeda2888564111c7c8d9e178429c8b1080fdbf4 Mon Sep 17 00:00:00 2001 From: uruk Date: Fri, 12 Apr 2013 12:28:05 +0200 Subject: MOHAWK: Prevent left mouse click handling if the cursor isn't visible. This fixes bug #3488327 - "LB: Mouse events processed when they shouldn't be". --- engines/mohawk/livingbooks.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'engines') diff --git a/engines/mohawk/livingbooks.cpp b/engines/mohawk/livingbooks.cpp index a0671d18d5..2b0a45d4e6 100644 --- a/engines/mohawk/livingbooks.cpp +++ b/engines/mohawk/livingbooks.cpp @@ -40,6 +40,8 @@ #include "gui/message.h" +#include "graphics/cursorman.h" + namespace Mohawk { // read a null-terminated string from a stream @@ -223,7 +225,7 @@ Common::Error MohawkEngine_LivingBooks::run() { } } - if (found) + if (found && CursorMan.isVisible()) found->handleMouseDown(event.mouse); break; -- cgit v1.2.3