From ee91df62f0be6ac65eae0eb3ed74383a3671aef7 Mon Sep 17 00:00:00 2001 From: nickodei <46863421+nickodei@users.noreply.github.com> Date: Wed, 30 Oct 2024 20:12:16 +0100 Subject: [PATCH] input: simulate mouse movement after scroll to refocus window (#8279) --- src/managers/input/InputManager.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/managers/input/InputManager.cpp b/src/managers/input/InputManager.cpp index 028286bf..91c12ece 100644 --- a/src/managers/input/InputManager.cpp +++ b/src/managers/input/InputManager.cpp @@ -831,6 +831,7 @@ void CInputManager::onMouseWheel(IPointer::SAxisEvent e) { int32_t deltaDiscrete = std::abs(discrete) != 0 && std::abs(discrete) < 1 ? std::copysign(1, discrete) : std::round(discrete); g_pSeatManager->sendPointerAxis(e.timeMs, e.axis, delta, deltaDiscrete, value120, e.source, WL_POINTER_AXIS_RELATIVE_DIRECTION_IDENTICAL); + simulateMouseMovement(); } Vector2D CInputManager::getMouseCoordsInternal() {