Fix redraw issues with window (un)maximizing.