diff --git a/source/Platform/Win32/Win32Mouse.cpp b/source/Platform/Win32/Win32Mouse.cpp index 61a49da..d1ef2e4 100644 --- a/source/Platform/Win32/Win32Mouse.cpp +++ b/source/Platform/Win32/Win32Mouse.cpp @@ -64,9 +64,10 @@ void Win32Mouse::update(InputModule *input) m_abs_position = Vector2f(p.x, p.y); // Update relative position - handle = ::GetCapture(); + // Get the active window. + handle = ::GetActiveWindow(); if (handle) { - // Translate position to focued window. + // Translate position to the active window. ScreenToClient(handle, &p); m_position = Vector2f(p.x, p.y); }