Tomas Carnecky : opengl: Properly use glXQueryDrawable() to get the Visual ID.