don't redraw when window is hidden