I’m emulating a graphics library using Opengl.In that for primiitve i draw on window an id will be returned and all the information about primitive is maintatined in a structure.Problem is whenever i click on the window or call glutPostRedisplay() everytime primiitve will be displayed and new id will be returned.How can I stop this fron happening.