[Xcb] [Bug 4232] xlsclients much too slow over network

Ian Osgood iano at quirkster.com
Wed Sep 2 12:18:43 PDT 2009

On Sep 2, 2009, at 8:49 AM, Peter Harris wrote:

> Barton C Massey wrote:
>> In message <20090902004224.547D813005A at annarchy.freedesktop.org>  
>> you wrote:
>>> Could you please try the attached XCB conversion of
>>> xlsclients.c? I'm curious to know how much it helps your
>>> case.
>> You beat me to it---*very* quick and cool.
> Thanks. It looked like a fun project, and something that wouldn't take
> more than a day. I'm glad to see I was right (although it was a  
> near thing).
>>  I'll be curious
>> to see how it works out also.  Thanks much for this work, Peter!

I'd like to add my thanks to Bart's.  This is exactly what XCB was  
designed for.

One down, one hundred to go!  :)

> Left as an exercise for the reader:
>  - Replace XDisplayName (with xcb_parse_display?) to remove the  
> need to
> link with Xlib.

     dpy = xcb_connect(displayname, &screen_number);
     if (!dpy) {
	fprintf (stderr, "%s:  unable to open display \"%s\"\r\n",
-		 ProgramName, XDisplayName (displayname));
+		 ProgramName, displayname ? displayname : getenv("DISPLAY"));
	exit (1);

> Peter Harris


More information about the Xcb mailing list