By 1375 Leopold had inherited the former Gorizia possessions in the Windic March, White Carniola, Friuli and Istria and the city of Feldkirch in Vorarlberg. On 6 Aug 1376 he was granted the right to make alliances with foreign rulers. In 1377 Albert traveled to Prussia for about five months, leaving Leopold in charge of all the Habsburg lands. During this time, Leopold signed a peace treaty with one of his brother's bitterest rivals, Heinrich von Schaunberg. When on 7 July 1379 he and Albert III signed the Treaty of Neuberg, Leopold became the exclusive ruler of Styria (then including Wiener Neustadt), Carinthia, Carniola, Tyrol and the Further Austrian lands in Swabia. In 1382 he was granted the city of Trieste as part of his payment for defeating Venice.