From de74fc1bc3bfc1b63bedf3f9c5dc0f2872cf09d1 Mon Sep 17 00:00:00 2001 From: Jonas Kulla Date: Wed, 24 Feb 2016 17:44:42 +0100 Subject: [PATCH] EventThread: Fix mouse cursor not being hidden --- src/eventthread.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/eventthread.cpp b/src/eventthread.cpp index e3bf194..9217a4a 100644 --- a/src/eventthread.cpp +++ b/src/eventthread.cpp @@ -127,7 +127,9 @@ void EventThread::process(RGSSThreadData &rtData) bool displayingFPS = false; bool cursorInWindow = false; - bool windowFocused = false; + + /* SDL doesn't send an initial FOCUS_GAINED event */ + bool windowFocused = true; bool terminate = false;