According to the Potsdam Agreement , the town fell to the Republic of Poland , while the remaining German population was expelled .
In the Potsdam Agreement , the town fell to the Republic of Poland , and the remaining German population was thrown out .