applied Martin Hurton's movemouse() patch