rem: *state = malloc(sizeof(WWorkspaceState)); if (*state) { (*state)->flags = data[0]; (*state)->workspace = data[1]; }
add: *state = wmalloc(sizeof(WWorkspaceState)); (*state)->workspace = data[0]; (*state)->flags = data[1];
context: getWorkspaceState(Window root, WWorkspaceState **state)            {    Atom type_ret;    int fmt_ret;        unsigned long nitems_ret;    unsigned long bytes_after_ret;    CARD32 *data;    if (XGetWindowProperty(dpy, root, _XA_WINDOWMAKER_STATE, 0, 2,                           True, _XA_WINDOWMAKER_STATE,                           &type_ret, &fmt_ret, &nitems_ret, &bytes_after_ret,                           (unsigned char **)&data)!=Success || !data)      return 0;    *state = malloc(sizeof(WWorkspaceState));    if (*state) {	(*state)->flags = data[0];	(*state)->workspace = data[1];    }    XFree(data);    if (*state && type_ret==_XA_WINDOWMAKER_STATE)      return 1;    else      return 0;}