Here's an example I saw for some GLX code:
display = XOpenDisplay(0);
// ...
xcb_connection_t *connection = XGetXCBConnection(display);
// ...
XCloseDisplay(display);
I noticed that there was no xcb_disconnect
in there. Is this correct? Also, is connection
still valid after the display is closed?