Accordingly, the king changed his royal titles to "Ludwig, King of Bavaria, Duke of Franconia, Duke in Swabia and Count Palatine of the Rhine" and these were retained by his successors. The Palatinate (formerly Rheinkreis) which Bavaria had acquired was mainly the western part of the former Electorate of the Palatinate. Ludwig's plan to acquire also the former eastern part could not be realized. The Electorate, a former dominion of the Bavarian Wittelsbach dynasty, had been split up in 1815, the eastern bank of the Rhine with Mannheim and Heidelberg was given to Baden. The western bank was granted to Bavaria as compensation for the loss of Tyrol and Salzburg.