Change window margins when window config changes.