[Xcb] XCB-based window management: more xcb-util libraries
Jamey Sharp
jamey at minilop.net
Sun Mar 6 20:32:55 PST 2005
On Sun, Mar 06, 2005 at 11:05:21PM +0100, Vincent Torri wrote:
> On Sun, 6 Mar 2005, Jamey Sharp wrote:
> > I'd like to get your code into CVS soon: it looks ready for that to me.
>
> the code is really ugly...
>
> tell me where i can add it, something like xcb/misc/xcb_image
> and misc is used for ugly or test code
Hah! You think *your* code is bad? Take a look at mine. :-)
I've just imported the code I wrote last summer for XCB-based window
management. This adds libraries for atom caching, callback interfaces
for events and property changes, an ICCCM binding, and a convenience
library for writing window managers. All of the code is at an early
prototype stage, though the atom cache bits are almost feature-complete
as far as I'm concerned.
The atom cache uses gperf to generate a perfect hash function for the
pre-defined atoms, so that's now a build requirement for the xcb-util
module. Sorry.
So I hope everyone will enjoy making fun of my code ;-) and maybe
appreciate some more examples of XCB usage. There's even a sort-of
functional window manager in the wm directory. (It doesn't seem to
handle focus correctly, presumably because I don't understand focus. And
it only lets you move windows around, anyway, so it's not a very
practical window manager.)
--Jamey
More information about the xcb
mailing list