Bug 42500: Fix restored window size after startup maximization
mentioned in merge request !994 (merged)