diff --git a/plugins/mousepad/windowsremoteinput.cpp b/plugins/mousepad/windowsremoteinput.cpp index c97464ece..1c4689437 100644 --- a/plugins/mousepad/windowsremoteinput.cpp +++ b/plugins/mousepad/windowsremoteinput.cpp @@ -8,6 +8,8 @@ #include #include +#include +#include #include @@ -237,9 +239,9 @@ bool WindowsRemoteInput::handlePacket(const NetworkPacket& np) } else { //Is a mouse move event POINT point; if (GetCursorPos(&point)) { - return SetCursorPos(point.x + (int)dx, point.y + (int)dy); - } else { - return false; + SetCursorPos(point.x + (int)dx, point.y + (int)dy); + // wait for a microsecond here to allow Windows to interpolate + std::this_thread::sleep_for(std::chrono::microseconds(1)); } } return true;