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

View file

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