Re #8909. Implemented window reshaping.