summaryrefslogtreecommitdiff
path: root/src/managers/input/InputManager.cpp
diff options
context:
space:
mode:
authorfazzi <18248986+fxzzi@users.noreply.github.com>2026-02-25 22:41:50 +0000
committerGitHub <noreply@github.com>2026-02-25 22:41:50 +0000
commit5b2efe54b135a5142bdd2266bbb3f26bca0b29e2 (patch)
tree7100e0fce8c15655243f2fd3d0a3123b44b5a3c7 /src/managers/input/InputManager.cpp
parent457617b5a31f70ea63e1fcc0729f29e4a9e6b486 (diff)
input: use fresh cursor pos when sending motion events (#13366)
Diffstat (limited to 'src/managers/input/InputManager.cpp')
-rw-r--r--src/managers/input/InputManager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/managers/input/InputManager.cpp b/src/managers/input/InputManager.cpp
index 4a87a878..64825633 100644
--- a/src/managers/input/InputManager.cpp
+++ b/src/managers/input/InputManager.cpp
@@ -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) {