Event loop exit on close

Anyone know offhand the proper way to gracefully exit the window event loop in response to clicking the close button?

In Windows I’d just handle the WM_CLOSE event to cleanup GL then WM_DESTROY to exit. What’s the Linux way?

Since I use SDL, I call SDL_Quit() on exit, and that’s about it.

SDL looks like a good bet, but I’m one of those guys that’s got to do everything the hard way, even if it makes absolutely no sense.

Anyhoo, narrowed it down to the ClientMessage event, and that plowed the way to a much greener searching pasture.

Thank ye kindly for the reply.

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.