Does anyone have an idea how I can avoid exiting my application when the X-button in the upper right of my GLUT window is pressed??
I just want to close that window (with glutDestroyWindow) without closing my other GLUT windows and the whole application.

Thanks for your advice
(and please don't tell me the only solution is to avoid using GLUT... )