resize_window() now does its own check for existence of active window.