   SDL and xwindows
  Too quick questions:1. I've got SDL openning a window (in XWindows Gnome), and I'm drawing stuff in it with OpenGL. It looks great. =) How do I assign a title to the XWindow so it has its name in the bar across the top?2. I want the window to close when someone clicks on the "X" at the top right...what event am I looking to trap? I'm trapping keyboard presses. window activations, and resizes...so what do I add to my switch statement? =)Thanks for your time.   
  1) SDL_WM_SetCaption()2) IIRC pressing the X generates an event of type SDL_QUIT.SDL_Event event;while(SDL_PollEvent(&event)) {    switch (event.type) {   case SDL_QUIT:   // clean up ...   // call SDL_Quit()   // exit the program   break;    }};  Thanks a lot, man =)   