After which incident did Warsaw become the de facto capital of Poland?

It was after a fire at the Wawel Castle in Krakow that King Sigismund III moved his residence to Warsaw.

**********