rendering is stopped when window looses focus