Variant of max-sub-window.