only do mouseMoveUnified on pix change

This commit is contained in:
vaxerski
2022-07-01 17:59:11 +02:00
parent 868e0f48d0
commit 7d7e82d446
2 changed files with 8 additions and 0 deletions

View File

@@ -37,6 +37,13 @@ void CInputManager::mouseMoveUnified(uint32_t time, bool refocus) {
}
Vector2D mouseCoords = getMouseCoordsInternal();
const auto MOUSECOORDSFLOORED = mouseCoords.floor();
if (MOUSECOORDSFLOORED == m_vLastCursorPosFloored)
return;
m_vLastCursorPosFloored = MOUSECOORDSFLOORED;
const auto PMONITOR = g_pCompositor->getMonitorFromCursor();
bool didConstraintOnCursor = false;