rem: if (!WFLAGP(wwin, no_titlebar)) {
add: if (HAS_TITLEBAR(wwin)) {
context: wWindowSetShape(WWindow *wwin){    XRectangle rect[2];    int count;#ifdef OPTIMIZE_SHAPE    XRectangle *rects;    XRectangle *urec;    int ordering;    /* only shape is the client's */    if (WFLAGP(wwin, no_titlebar) && WFLAGP(wwin, no_resizebar)) {	goto alt_code;    }        /* Get array of rectangles describing the shape mask */    rects = XShapeGetRectangles(dpy, wwin->client_win, ShapeBounding,				&count, &ordering);    if (!rects) {	goto alt_code;    }    urec = malloc(sizeof(XRectangle)*(count+2));    if (!urec) {	XFree(rects);	goto alt_code;    }    /* insert our decoration rectangles in the rect list */    memcpy(urec, rects, sizeof(XRectangle)*count);    XFree(rects);    if (!WFLAGP(wwin, no_titlebar)) {	urec[count].x = -1;	urec[count].y = -1 - wwin->frame->top_width;	urec[count].width = wwin->frame->core->width + 2;	urec[count].height = wwin->frame->top_width + 1;	count++;    }    if (!WFLAGP(wwin, no_resizebar)) {	urec[count].x = -1;	urec[count].y = wwin->frame->core->height 	    - wwin->frame->bottom_width - wwin->frame->top_width;	urec[count].width = wwin->frame->core->width + 2;	urec[count].height = wwin->frame->bottom_width + 1;	count++;    }    /* shape our frame window */    XShapeCombineRectangles(dpy, wwin->frame->core->window, ShapeBounding,			    0, wwin->frame->top_width, urec, count,			    ShapeSet, Unsorted);    XFlush(dpy);    wfree(urec);    return;alt_code:#endif /* OPTIMIZE_SHAPE */    count = 0;    if (!WFLAGP(wwin, no_titlebar)) {        rect[count].x = -1;        rect[count].y = -1;	rect[count].width = wwin->frame->core->width + 2;	rect[count].height = wwin->frame->top_width + 1;        count++;    }    if (!WFLAGP(wwin, no_resizebar)) {	rect[count].x = -1;	rect[count].y = wwin->frame->core->height - wwin->frame->bottom_width;	rect[count].width = wwin->frame->core->width + 2;	rect[count].height = wwin->frame->bottom_width + 1;	count++;    }    if (count > 0) {	XShapeCombineRectangles(dpy, wwin->frame->core->window, ShapeBounding,				0, 0, rect, count, ShapeSet, Unsorted);    }    XShapeCombineShape(dpy, wwin->frame->core->window, ShapeBounding,		       0, wwin->frame->top_width, wwin->client_win,		       ShapeBounding, (count > 0 ? ShapeUnion : ShapeSet));    XFlush(dpy);}