rem: if (!WFLAGP(wwin, no_titlebar) && !wwin->flags.shaded) {
add: if (HAS_TITLEBAR(wwin) && !wwin->flags.shaded) {
context: drawTransparentFrame(WWindow *wwin, int x, int y, int width, int height){    Window root = wwin->screen_ptr->root_win;    GC gc = wwin->screen_ptr->frame_gc;    int h = 0;    int bottom = 0;    if (HAS_BORDER(wwin)) {        x += FRAME_BORDER_WIDTH;        y += FRAME_BORDER_WIDTH;    }    if (!WFLAGP(wwin, no_titlebar) && !wwin->flags.shaded) {        h = WMFontHeight(wwin->screen_ptr->title_font) + (wPreferences.window_title_clearance + TITLEBAR_EXTEND_SPACE) * 2;    }    if (!WFLAGP(wwin, no_resizebar) && !wwin->flags.shaded) {        /* Can't use wwin-frame->bottom_width because, in some cases         (e.g. interactive placement), frame does not point to anything. */        bottom = RESIZEBAR_HEIGHT;    }    XDrawRectangle(dpy, root, gc, x - 1, y - 1, width + 1, height + 1);    if (h > 0) {        XDrawLine(dpy, root, gc, x, y + h - 1, x + width, y + h - 1);    }    if (bottom > 0) {        XDrawLine(dpy, root, gc, x, y + height - bottom,                  x + width, y + height - bottom);    }}