I would like to gather inforamtion about all the
running X applicaiotns.
Thus I do
Window root = RootWindow (dpy, screenno);
XQueryTree (dpy, root, &dummywindow, &dummywindow,
&children, &nchildren);

for (i = 0; i < nchildren; i++) {
        if (XGetWindowAttributes(dpy, children[i],
&attr) && (attr.map_state == IsViewable)) {
XFetchName(dpy, children[i], &win_name);
printf("Window ID: 0x%lx\n",children[i]);
}
}

I thought that win_name will contain the name of the
window, but it is always null,
what am I doing wrong?

Thanks!

=====


______________________________________________________________________
Yahoo! Cellulari: loghi, suonerie, picture message per il tuo telefonino
http://it.yahoo.com/mail_it/foot/?http://it.mobile.yahoo.com/index2002.html
_______________________________________________
Devel mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/devel

Reply via email to