Don't do rendering if window is minimized