input: use fresh cursor pos when sending motion events (#13366)

This commit is contained in:
fazzi 2026-02-25 22:41:50 +00:00 committed by GitHub
parent 457617b5a3
commit 5b2efe54b1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -193,7 +193,7 @@ void CInputManager::sendMotionEventsToFocused() {
m_emptyFocusCursorSet = false;
g_pSeatManager->setPointerFocus(Desktop::focusState()->surface(), m_lastCursorPosFloored - BOX->pos());
g_pSeatManager->setPointerFocus(Desktop::focusState()->surface(), getMouseCoordsInternal().floor() - BOX->pos());
}
void CInputManager::mouseMoveUnified(uint32_t time, bool refocus, bool mouse, std::optional<Vector2D> overridePos) {