At the end of the 16th century, Warsaw step by step became the capital, although it was never formally the capital. There is no legal act that Warsaw is the capital; Kraków remained as it was. Warsaw is Warsaw, just as Kaunas is Kaunas. And there is nothing you can do about it.