Adapt mouse location to avoid security issues