closing windows

I am using GLUT to create and display several windows. If the X box in the upper right hand corner of any window is pressed, then all of the windows close. Does anyone know a way to make it so only the window whose X button is being pressed closes?

Yeah, … don’t use glut