--- rxvt-unicode/src/rxvtfont.C 2006/03/04 18:42:15 1.99 +++ rxvt-unicode/src/rxvtfont.C 2006/03/11 00:33:23 1.101 @@ -1276,14 +1276,14 @@ int w = term->fwidth * len; int h = term->fheight; - bool buffered = 0 + bool buffered = bg >= 0 // we don't use a transparent bg #ifndef FORCE_UNBUFFERED_XFT # if defined(XPM_BACKGROUND) || defined(TRANSPARENT) || !term->am_transparent // we aren't transparent || term->am_pixmap_trans // we have a pixmap # endif - || bg >= 0; // we don't use a transparent bg #endif + ; // cut trailing spaces while (len && text [len - 1] == ' ') @@ -1326,7 +1326,9 @@ #if defined(XPM_BACKGROUND) || defined(TRANSPARENT) if (bg < 0 && term->am_pixmap_trans) - XCopyArea (disp, term->pixmap, d2, gc, x, y, w, h, 0, 0); + XCopyArea (disp, term->pixmap, d2, gc, + x + term->window_vt_x, y + term->window_vt_y, + w, h, 0, 0); else if (bg < 0 && term->bgPixmap.pixmap) { XGCValues gcv;