Index: xcompmgr/xcompmgr.c =================================================================== RCS file: /cvs/xapps/xcompmgr/xcompmgr.c,v retrieving revision 1.26 diff -u -r1.26 xcompmgr.c --- xcompmgr/xcompmgr.c 14 Aug 2004 21:39:51 -0000 1.26 +++ xcompmgr/xcompmgr.c 4 Sep 2004 19:23:19 -0000 @@ -1125,10 +1125,10 @@ unsigned long n, left; char *data; - XGetWindowProperty(dpy, w->id, opacityAtom, 0L, 1L, False, - XA_CARDINAL, &actual, &format, - &n, &left, (unsigned char **) &data); - if (data != None) + int result = XGetWindowProperty(dpy, w->id, opacityAtom, 0L, 1L, False, + XA_CARDINAL, &actual, &format, + &n, &left, (unsigned char **) &data); + if (result == Success && data != None) { unsigned int i; memcpy (&i, data, sizeof (unsigned int));