aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/managers
diff options
context:
space:
mode:
authornickodei <[email protected]>2024-10-30 20:12:16 +0100
committerGitHub <[email protected]>2024-10-30 19:12:16 +0000
commitee91df62f0be6ac65eae0eb3ed74383a3671aef7 (patch)
tree6fcac88247a950a4394e5a47be8dfeea63ea7de5 /src/managers
parent12c1bb936dd463c4188def1c73c2bb786433a6dc (diff)
downloadHyprland-ee91df62f0be6ac65eae0eb3ed74383a3671aef7.tar.gz
Hyprland-ee91df62f0be6ac65eae0eb3ed74383a3671aef7.zip
input: simulate mouse movement after scroll to refocus window (#8279)
Diffstat (limited to 'src/managers')
-rw-r--r--src/managers/input/InputManager.cpp1
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() {