Fix SetPrimaryCursorPosition() behaviour when no focus