revive windows in the correct order