[Xcb] EWMH API for XCB

Jamey Sharp jamey at minilop.net
Sun Dec 13 21:02:49 PST 2009


On Sun, Dec 13, 2009 at 05:50:56PM -0800, Barton C Massey wrote:
> In message <20091214011643.GA29653 at oh.minilop.net> you wrote:
> > These atoms are ones that *aren't* predefined, but are specified by
> > EWMH (or I think, in a couple of cases, by ICCCM).
> 
> I understand.

Um... At least one of us doesn't. :-)

> But shouldn't we just use the Python thing on XML instead of the m4
> thing on, well, m4 to generate the C code anyway, is all I'm saying?

Sure, Arnaud *could* write some Python to generate tiny parts of the C
source for his library, but it wouldn't bear any resemblance to the
Python we already have, because these atoms are not specified by the X
protocol. You have to call InternAtom on them--they don't have constant
values, unlike the core protocol atoms. Not only would it be all-new
code, but m4 is much better suited to the way this code is using it than
Python would be, and XML is a poor choice when this code only needs a
single list of short strings.

Jamey
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
Url : http://lists.freedesktop.org/archives/xcb/attachments/20091213/e4d3896a/attachment.pgp 


More information about the Xcb mailing list