rem: segs[1].y2 = core->height - 1; XDrawSegments(dpy, core->window, dark, segs, 2);
add: segs[1].y2 = height - 1; XDrawSegments(dpy, d, dark, segs, 2);
context: wDrawBevel(WCoreWindow *core, WTexSolid *texture, int relief){    GC light, dim, dark;    XSegment segs[4];    if (relief==WREL_FLAT) return;    light = texture->light_gc;    dim = texture->dim_gc;    dark = texture->dark_gc;    switch (relief) {     case WREL_FLAT:	return;     case WREL_MENUENTRY:     case WREL_RAISED:     case WREL_ICON:	segs[0].x1 = 1;	segs[0].x2 = core->width - 2;	segs[0].y2 = segs[0].y1 = core->height - 2;	segs[1].x1 = core->width - 2;	segs[1].y1 = 1;	segs[1].x2 = core->width - 2;	segs[1].y2 = core->height - 2;	XDrawSegments(dpy, core->window, dim, segs, 2);	segs[0].x1 = 0;	segs[0].x2 = core->width - 1;	segs[0].y2 = segs[0].y1 = core->height - 1;	segs[1].x1 = segs[1].x2 = core->width - 1;	segs[1].y1 = 0;	segs[1].y2 = core->height - 1;	XDrawSegments(dpy, core->window, dark, segs, 2);	segs[0].x1 = segs[0].y1 = segs[0].y2 = 0;	segs[0].x2 = core->width - 2;	segs[1].x1 = segs[1].y1 = 0;	segs[1].x2 = 0;	segs[1].y2 = core->height - 2;	XDrawSegments(dpy, core->window, light, segs, 2);	if (relief==WREL_ICON) {	    segs[0].x1 = segs[0].y1 = segs[0].y2 = 1;	    segs[0].x2 = core->width - 2;	    segs[1].x1 = segs[1].y1 = 1;	    segs[1].x2 = 1;	    segs[1].y2 = core->height - 2;	    XDrawSegments(dpy, core->window, light, segs, 2);	}	break;		     case WREL_SUNKEN:	segs[0].x1 = 0;	segs[0].x2 = core->width - 1;	segs[0].y2 = segs[0].y1 = 0;	segs[1].x1 = segs[1].x2 = 0;	segs[1].y1 = 0;	segs[1].y2 = core->height - 1;	XDrawSegments(dpy, core->window, dark, segs, 2);		segs[0].x1 = 0;	segs[0].y1 = segs[0].y2 = core->height - 1;	segs[0].x2 = core->width - 1;	segs[1].x2 = segs[1].x1 = core->width - 1;	segs[1].y1 = 1;	segs[1].y2 = core->height - 1;	XDrawSegments(dpy, core->window, light, segs, 2);	break;	    }}