From 2b027cb04b47984948f083b56520a368d6f377e9 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sat, 14 Sep 2024 10:33:44 +0300 Subject: [PATCH] Add the appropriate flag when synthesizing mouse movement on Windows --- source/input/windows/synthesizer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/input/windows/synthesizer.cpp b/source/input/windows/synthesizer.cpp index deef9a3..8296333 100644 --- a/source/input/windows/synthesizer.cpp +++ b/source/input/windows/synthesizer.cpp @@ -77,7 +77,7 @@ void Synthesizer::move_mouse_to(int x, int y) input.mi.dx = x*65535/(desktop_mode.width-1); input.mi.dy = y*65535/(desktop_mode.height-1); input.mi.mouseData = 0; - input.mi.dwFlags = MOUSEEVENTF_ABSOLUTE; + input.mi.dwFlags = MOUSEEVENTF_MOVE|MOUSEEVENTF_ABSOLUTE; input.mi.time = 0; input.mi.dwExtraInfo = 0; -- 2.45.2