[Xcb] cursorfont definitions for XCB?

Alan Coopersmith alan.coopersmith at oracle.com
Mon Jun 7 14:45:55 PDT 2010


Jamey Sharp wrote:
> On Mon, Jun 7, 2010 at 8:20 AM, Alan Coopersmith
> <alan.coopersmith at oracle.com> wrote:
>> Vincent Torri wrote:
>>> On Mon, 7 Jun 2010, Alan Coopersmith wrote:
>>>> Is there an XCB enum equivalent of the definitions Xlib provides in
>>>> <X11/cursorfont.h> to map cursor shape names to their standard glyphs
>>>> in the "cursor" font?
>>> For me, that file is more "X11" than "Xlib".
>>> XCB is too low-level to have such file. Imo, it should use cursorfont.h.
>> So should it be moved to x11proto?   Seems weird to have xcb-using
>> programs depend on having libX11 installed to build them just to
>> get cursor names.
> 
> Makes sense to me, I guess, although xcb-using programs don't normally
> need x11proto either. But I certainly would prefer that people use the
> same header for this regardless of whether they're using Xlib or XCB.

Except that x11proto includes things like the keysymdef headers - XCB
doesn't have a replacement for those yet does it?

Maybe we should split x11proto into the actual protocol headers that xcb-proto
replaces and all the other misc bits that it doesn't, like Xfuncproto.h, that
you may still want to use with software converted to pure-xcb.   (Maybe if
Keith ever does the X proto module refactoring he keeps talking about?   One
mega-module for the X server and Xlib-using apps, and bits that xcb apps need
can move somewhere else.)

> You mentioned not being able to find a standard containing these
> values. I don't know of one either, but they are listed by name and
> image in Appendix B of "X Window System: C Library and Protocol
> Reference", Scheifler, Gettys, Newman. My copy is the 1988 edition;
> ISTR there was a second edition at some point?

It's there in the Third Edition copy I have (1992, X11R5) - I used to have a
copy of a later edition (don't remember the number but it covered X11R6.4 I
think), but have lost it or loaned it out and never got it back.

An online copy of that list is at:
	http://tronche.com/gui/x/xlib/appendix/b/

And though my previous greps didn't turn it up, I do see they're listed
in lib/libX11/specs/libX11/AppB

So is the long term plan that XCB just adopts the keysymdef & cursorfont headers
as is, or that it creates new ones for these enumerations in the future?

-- 
	-Alan Coopersmith-        alan.coopersmith at oracle.com
	 Oracle Solaris Platform Engineering: X Window System



More information about the Xcb mailing list