[Xcb] Mixing xlib/xcb with self-generated protocol?
linuxhippy at gmail.com
Mon Oct 27 16:17:30 PDT 2008
Perfect, thanks a lot.
I am really looking foreward when the stuff is available in master.
Thanks again, Clemens
2008/10/24 Jamey Sharp <jamey at minilop.net>:
> On Thu, Oct 23, 2008 at 07:26:57PM +0200, Clemens Eisserer wrote:
>> What I am concerned is interaction between independent socket users.
>> E.g. will it be possible to "call" XRenderFillRectangles on a Picture
>> which was created by Xlib by another user, or will it be even possible
>> to create server-side objects on both "sides"?
> Oh, absolutely. Once you've generated protocol to tell the server that
> you want to use an XID for a particular purpose, any future socket owner
> on that same XCB connection can use that XID too. The server can't tell
> the difference between different libraries sharing the same connection
> using the handoff calls.
> Note that XID allocation is hard to share, though. You should always
> call xcb_generate_id just when you need the new XID, but doing so might
> mean XCB has to get the socket back from you first. So it's tricky.
> Xlib has to call it much earlier for reasons we can't work around, so
> it's theoretically possible for an XID to get used for two different
> things simultaneously. I gather that actually works if the XIDs have
> different types...
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (GNU/Linux)
> -----END PGP SIGNATURE-----
> Xcb mailing list
> Xcb at lists.freedesktop.org
More information about the Xcb