I have a problem, I use glx to create the window and uses a while loop to draw the picture. But, after killing the Xwinodw, the process is still running, is there any call backs for knowing the status of the winodw (whether it is killed or not)?
glXMakeCurrent(display, window, context);
Is there any way I can get the status of the winodw, and then I can use that instead of while(1). Please help me