Don't redraw the window contents twice when resizing.