A second call to set_mode should resize the window.