Closed glowcoil closed 8 months ago
I'm not sure why we're even dealing with
XOpenDisplay
/XCloseDisplay
instead of usingXCBConnection::connect()
?
It's necessary since we use the Xlib GLX API for OpenGL context creation. If we were to switch from GLX to EGL, it should be possible to stop linking to Xlib and xcb entirely and just use x11rb's RustConnection
.
Pass
false
for theshould_drop
argument ofXCBConnection::from_raw_xcb_connection
, so that it doesn't implicitly callxcb_disconnect
on drop. Instead, explicitly callXCloseDisplay
on drop, since the connection was originally created withXOpenDisplay
.