+2004-09-14 Adam Jackson <ajax@freedesktop.org>
+
+ * xcompmgr.c:
+ Bug #1360: Fix a segfault by checking the return value of XQueryTree.
+ (Johan Kiviniemi)
+
2004-09-10 Adam Jackson <ajax@freedesktop.org>
* xcompmgr.c:
if (type != winNormalAtom)
return type;
- XQueryTree (dpy, w, &root_return, &parent_return, &children, &nchildren);
+ if (!XQueryTree (dpy, w, &root_return, &parent_return, &children,
+ &nchildren))
+ {
+ /* XQueryTree failed. */
+ return winNormalAtom;
+ }
+
for (i = 0;i < nchildren;i++)
{
type = determine_wintype (dpy, children[i]);