[Xcb] Getting a Display handle from an xcb_connection_t

Barton C Massey bart at cs.pdx.edu
Tue Jan 8 00:47:22 PST 2008


Sadly, I cannot recall any way you can get the Xlib Display
state right with the existing API, no.  Probably such a
thing is achievable if you're careful, but non-trivial;
you'd have to go through all the Display fields and make
sure they matched the XCB connection's view.

Anyone else remember if we had some clever trick for this?

	Bart

In message <4782E103.6050209 at tycho.nsa.gov> you wrote:
> Is there a way I can create an xlib Display handle from an existing XCB 
> connection?  In other words, the opposite of XGetXCBConnection?
> 
> To make a long story short, I'm in a situation where I can easily call 
> xcb_connect_to_display_with_auth_info(), but not XOpenDisplay() because 
> there is no equivalent Xlib call where I can just pass in the auth 
> information.


More information about the Xcb mailing list