add: data[4] = wwin->flags.maximized; if (wwin->flags.maximized == 0) { data[5] = wwin->frame_x; data[6] = wwin->frame_y; data[7] = wwin->frame->core->width; data[8] = wwin->frame->core->height; } else { data[5] = wwin->old_geometry.x; data[6] = wwin->old_geometry.y; data[7] = wwin->old_geometry.width; data[8] = wwin->old_geometry.height; }
context: wWindowSaveState(WWindow *wwin){    CARD32 data[10];    int i;    memset(data, 0, sizeof(CARD32)*10);    data[0] = wwin->frame->workspace;    data[1] = wwin->flags.miniaturized;    data[2] = wwin->flags.shaded;    data[3] = wwin->flags.hidden;    for (i = 0; i < MAX_WINDOW_SHORTCUTS; i++) {	if (wwin->screen_ptr->shortcutWindows[i] &&	    WMCountInBag(wwin->screen_ptr->shortcutWindows[i], wwin))	    data[9] |= 1<<i;    }    XChangeProperty(dpy, wwin->client_win, _XA_WINDOWMAKER_STATE,		    _XA_WINDOWMAKER_STATE, 32, PropModeReplace,		    (unsigned char *)data, 10);}