X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=utils%2Fvroot.h;h=dd4a7291a910d15cc56e2f4a480d41718b50b222;hp=ef41073a96aab0b797dbf32bb8c1d47b60e693a7;hb=ffd8c0873576a9e3065696a624dce6b766b77062;hpb=9c9d475ff889ed8be02e8ce8c17da28b93278fca diff --git a/utils/vroot.h b/utils/vroot.h index ef41073a..dd4a7291 100644 --- a/utils/vroot.h +++ b/utils/vroot.h @@ -116,15 +116,15 @@ VirtualRootWindowOfScreen(screen) Screen *screen; Atom actual_type; int actual_format; unsigned long nitems, bytesafter; - Window *newRoot = (Window *)0; + unsigned char *newRoot = 0; if (XGetWindowProperty(dpy, children[i], __SWM_VROOT, 0, 1, False, XA_WINDOW, &actual_type, &actual_format, &nitems, &bytesafter, - (unsigned char **) &newRoot) == Success + &newRoot) == Success && newRoot) { - root = *newRoot; + root = (Window) *newRoot; break; } }