Fix non-focused windows on WS change

Fixes #298
This commit is contained in:
Mihai Fufezan 2022-07-03 15:51:32 +03:00
parent e0f0ed9af4
commit 0a01ec9926
No known key found for this signature in database
GPG Key ID: 5899325F2F120900
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ void CInputManager::mouseMoveUnified(uint32_t time, bool refocus) {
Vector2D mouseCoords = getMouseCoordsInternal();
const auto MOUSECOORDSFLOORED = mouseCoords.floor();
if (MOUSECOORDSFLOORED == m_vLastCursorPosFloored)
if (MOUSECOORDSFLOORED == m_vLastCursorPosFloored && !refocus)
return;
m_vLastCursorPosFloored = MOUSECOORDSFLOORED;