When the Turks were beaten and retreated, leaving many sacs of coffee behind, Vienna started to know how to drink coffee as you have mentioned.
However, as I heard the Viennese to celebrate the victory AND the coffee invented an item which ever since went perfectly with the coffee: the croissant. The form of the croissant is nothing else but the Turkish quarter moon which happens to be in the flag of the Turks (thence Osmans).