diff options
author | nickodei <[email protected]> | 2024-10-30 20:12:16 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2024-10-30 19:12:16 +0000 |
commit | ee91df62f0be6ac65eae0eb3ed74383a3671aef7 (patch) | |
tree | 6fcac88247a950a4394e5a47be8dfeea63ea7de5 /src/managers/input/InputManager.cpp | |
parent | 12c1bb936dd463c4188def1c73c2bb786433a6dc (diff) | |
download | Hyprland-ee91df62f0be6ac65eae0eb3ed74383a3671aef7.tar.gz Hyprland-ee91df62f0be6ac65eae0eb3ed74383a3671aef7.zip |
input: simulate mouse movement after scroll to refocus window (#8279)
Diffstat (limited to 'src/managers/input/InputManager.cpp')
-rw-r--r-- | src/managers/input/InputManager.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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() { |