Making the check for a current window in "glutPostRedisplay" more stringent