When restoring a maximized window, calling QWidget::showNormal() on it wouldn't set it's previous non-maximized size. QWidget::normalGeometry() doesn't have a setter, so use private API.