The shifting of borders after World War II was sanctioned by the Polish government. 
The Polish borders shifted west a couple of hundred kilometers, incorporating ancient parts of Silesia like Wroclaw that had belonged to Germany before the war.