[comp.windows.x] XA_RESOURCE_MANAGER property loaded/read improperly

rjohn@ICS.UCI.EDU (01/05/90)

the XA_RESOURCE_MANAGER property of the root window a should be read / written
with respect to the default_screen of the display connection rather than
screen 0 all the time.

XOpenDis.c:

XGetWindowProperty(dpy, RootWindow(dpy, 0),
                XA_RESOURCE_MANAGER, 0L, 100000000L, False, XA_STRING,
                &actual_type, &actual_format, &nitems, &leftover,
                (unsigned char **) &dpy->xdefaults);

xrdb.c:

XDeleteProperty(dpy, RootWindow(dpy, 0), XA_RESOURCE_MANAGER);

XChangeProperty (dpy, RootWindow(dpy, 0), XA_RESOURCE_MANAGER,
                XA_STRING, 8, PropModeReplace, buffer.buff, buffer.used);

DefaultScreen(dpy) should be used instead of 0 in the RootWindow macro!