rem: WSavedState state;   state.workspace = wwin->frame->workspace; state.shaded = wwin->flags.shaded; state.hidden = wwin->flags.hidden;
add: CARD32 data[9];  memset(data, 0, sizeof(CARD32)*9); data[0] = wwin->frame->workspace; data[2] = wwin->flags.shaded; data[3] = wwin->flags.hidden;
context: wWindowSaveState(WWindow *wwin){    WSavedState state;/*    if (wwin->flags.miniaturized || wwin->flags.hidden) {	state.workspace = 0;    } else {	state.workspace = wwin->frame->workspace;    }*/    state.workspace = wwin->frame->workspace;    state.shaded = wwin->flags.shaded;    state.hidden = wwin->flags.hidden;    XChangeProperty(dpy, wwin->client_win, _XA_WINDOWMAKER_STATE,		    _XA_WINDOWMAKER_STATE, 32, PropModeReplace,		    (unsigned char *) &state, sizeof(WSavedState)/sizeof(int));}