]> git.tdb.fi Git - libs/gui.git/commitdiff
Add the appropriate flag when synthesizing mouse movement on Windows
authorMikko Rasa <tdb@tdb.fi>
Sat, 14 Sep 2024 07:33:44 +0000 (10:33 +0300)
committerMikko Rasa <tdb@tdb.fi>
Sat, 14 Sep 2024 07:33:44 +0000 (10:33 +0300)
source/input/windows/synthesizer.cpp

index deef9a3704a12ebea2c68e963d22680c641247f0..829633352d7d6f75057f51c57554700c95c95857 100644 (file)
@@ -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;