Novak Djokovic ended a three-match losing streak with a 6-2, 6-3 victory over Marton Fucsovics in the second round of the ATP 250 Geneva Open.