rem: y = *fwin->title_clearance + TITLEBAR_EXTEND_SPACE;
add: y = *fwin->title_clearance + TITLEBAR_EXTEND_SPACE - 1;
context: wFrameWindowPaint(WFrameWindow *fwin){    WScreen *scr = fwin->screen_ptr;    int state;    state = fwin->flags.state;    if (fwin->flags.is_client_window_frame)        fwin->flags.justification = wPreferences.title_justification;    if (fwin->flags.need_texture_remake) {        int i;        fwin->flags.need_texture_remake = 0;        fwin->flags.need_texture_change = 0;        if (fwin->flags.single_texture) {            remakeTexture(fwin, 0);            updateTexture(fwin);        } else {            /* first render the texture for the current state... */            remakeTexture(fwin, state);            /* ... and paint it */            updateTexture(fwin);            for (i=0; i < 3; i++) {                if (i != state) {                    remakeTexture(fwin, i);                }            }        }    }    if (fwin->flags.need_texture_change) {        fwin->flags.need_texture_change = 0;        updateTexture(fwin);    }    if (fwin->titlebar && !fwin->flags.repaint_only_resizebar        && fwin->title_texture[state]->any.type==WTEX_SOLID) {        wDrawBevel(fwin->titlebar->window, fwin->titlebar->width,                   fwin->titlebar->height,                   (WTexSolid*)fwin->title_texture[state],                   WREL_RAISED);    }    if (fwin->resizebar	&& !fwin->flags.repaint_only_titlebar        && fwin->resizebar_texture[0]->any.type == WTEX_SOLID) {        Window win;        int w, h;        int cw;        GC light_gc, dim_gc;        WTexSolid *texture = (WTexSolid*)fwin->resizebar_texture[0];        w = fwin->resizebar->width;        h = fwin->resizebar->height;        cw = fwin->resizebar_corner_width;        light_gc = texture->light_gc;        dim_gc = texture->dim_gc;        win = fwin->resizebar->window;        XDrawLine(dpy, win, dim_gc, 0, 0, w, 0);        XDrawLine(dpy, win, light_gc, 0, 1, w, 1);        XDrawLine(dpy, win, dim_gc, cw, 2, cw, h);        XDrawLine(dpy, win, light_gc, cw+1, 2, cw+1, h);        XDrawLine(dpy, win, dim_gc, w-cw-2, 2, w-cw-2, h);        XDrawLine(dpy, win, light_gc, w-cw-1, 2, w-cw-1, h);#ifdef SHADOW_RESIZEBAR        XDrawLine(dpy, win, light_gc, 0, 1, 0, h-1);        XDrawLine(dpy, win, dim_gc, w-1, 2, w-1, h-1);        XDrawLine(dpy, win, dim_gc, 1, h-1, cw, h-1);        XDrawLine(dpy, win, dim_gc, cw+2, h-1, w-cw-2, h-1);        XDrawLine(dpy, win, dim_gc, w-cw, h-1, w-1, h-1);#endif /* SHADOW_RESIZEBAR */    }    if (fwin->titlebar && !fwin->flags.repaint_only_resizebar) {        int x, y, w, h;        int lofs = 6, rofs = 6;        int titlelen;        int allButtons = 1;        if (!wPreferences.new_style) {            if (fwin->left_button && !fwin->flags.hide_left_button                && !fwin->flags.lbutton_dont_fit)                lofs += fwin->left_button->width + 3;            else                allButtons = 0;#ifdef XKB_BUTTON_HINT            if (fwin->language_button && !fwin->flags.hide_language_button                && !fwin->flags.languagebutton_dont_fit)                lofs += fwin->language_button->width;            else                allButtons = 0;#endif            if (fwin->right_button && !fwin->flags.hide_right_button                && !fwin->flags.rbutton_dont_fit)                rofs += fwin->right_button->width + 3;            else                allButtons = 0;        }#ifdef XKB_BUTTON_HINT        fwin->languagebutton_image =            scr->b_pixmaps[WBUT_XKBGROUP1 + fwin->languagemode];#endif        if (fwin->title) {            Drawable buf;            char *title;            title = ShrinkString(*fwin->font, fwin->title,                                 fwin->titlebar->width - lofs - rofs);            titlelen = strlen(title);            w = WMWidthOfString(*fwin->font, title, titlelen);            switch (fwin->flags.justification) {            case WTJ_LEFT:                x = lofs;                break;            case WTJ_RIGHT:                x = fwin->titlebar->width - w - rofs;                break;            default:                if (!allButtons)                    x = lofs + (fwin->titlebar->width - w - lofs - rofs) / 2;                else                    x = (fwin->titlebar->width - w) / 2;                break;            }            y = *fwin->title_clearance + TITLEBAR_EXTEND_SPACE;            h = WMFontHeight(*fwin->font);            /* We use a w+2 buffer to have an extra pixel on the left and             * another one on the right. This is because for some odd reason,             * sometimes when using AA fonts (when libfreetype2 is compiled             * with bytecode interpreter turned off), some fonts are drawn             * starting from x = -1 not from 0 as requested. Observed with             * capital A letter on the bold 'trebuchet ms' font. -Dan             */            buf = XCreatePixmap(dpy, fwin->titlebar->window, w+2, h,                                scr->w_depth);            XSetClipMask(dpy, scr->copy_gc, None);            if (fwin->title_texture[state]->any.type!=WTEX_SOLID) {                XCopyArea(dpy, fwin->title_back[state], buf, scr->copy_gc,                          x-1, y, w+2, h, 0, 0);            } else {                XSetForeground(dpy, scr->copy_gc,                               fwin->title_texture[state]->solid.normal.pixel);                XFillRectangle(dpy, buf, scr->copy_gc, 0, 0, w+2, h);            }            /*XDrawRectangle(dpy, buf, WMColorGC(scr->white),1,0,w,h-1);*/            WMDrawString(scr->wmscreen, buf, fwin->title_color[state],                         *fwin->font, 1, 0, title, titlelen);            XCopyArea(dpy, buf, fwin->titlebar->window, scr->copy_gc,                      0, 0, w+2, h, x-1, y);            XFreePixmap(dpy, buf);            wfree(title);        }        if (fwin->left_button)            handleButtonExpose(&fwin->left_button->descriptor, NULL);        if (fwin->right_button)            handleButtonExpose(&fwin->right_button->descriptor, NULL);#ifdef XKB_BUTTON_HINT        if (fwin->language_button)            handleButtonExpose(&fwin->language_button->descriptor, NULL);#endif    }}