[Xcb] Whatever happened to the XCloseDisplay() hooks?

Julien Cristau jcristau at debian.org
Wed Oct 14 12:03:47 PDT 2009


On Wed, Oct 14, 2009 at 11:52:32 -0700, Barton C Massey wrote:

> I understand where you're coming from, and appreciate the
> patch you sent.  I'm afraid, however, that we shouldn't do
> callbacks in XCB core, since it's just a protocol
> binding. :-)
> 
> One alternative that seems reasonable to me is for you to
> wrap xcb_disconnect() yourself, and ask Cairo apps to call
> your wrapper for connections that have been used by Cairo.
> In principle this could create problems for libraries, but
> in practice I can't think of any interesting use case for
> calling xcb_disconnect() from a library offhand.
> 
It seems to me this would be a source of trouble if a program uses libA
and libB, and both wrap xcb_disconnect and require you use their
wrapper.  Which one do you pick?

Cheers,
Julien


More information about the Xcb mailing list