if (target)
{
flags &= ~isVtOrigin;
+
if (pixmap != None)
{
/* set target's background to pixmap */
{
XSetWindowBackgroundPixmap (target->dpy, target->parent[0], pixmap);
XSetWindowBackgroundPixmap (target->dpy, target->vt, ParentRelative);
+
if (target->scrollBar.win)
XSetWindowBackgroundPixmap (target->dpy, target->scrollBar.win, ParentRelative);
}
XSetWindowBackground (target->dpy, target->parent[0], target->pix_colors[Color_border]);
XSetWindowBackgroundPixmap (target->dpy, target->vt, pixmap);
/* do we also need to set scrollbar's background here ? */
+
if (target->scrollBar.win)
- XSetWindowBackground (target->dpy, target->scrollBar.win, target->pix_colors[Color_border]);
+ XSetWindowBackground (target->dpy, target->scrollBar.win, target->pix_colors[Color_border]);
}
}
else
XSetWindowBackground (target->dpy, target->vt, target->pix_colors[Color_bg]);
/* do we also need to set scrollbar's background here ? */
if (target->scrollBar.win)
- XSetWindowBackground (target->dpy, target->scrollBar.win, target->pix_colors[Color_border]);
+ XSetWindowBackground (target->dpy, target->scrollBar.win, target->pix_colors[Color_border]);
}
+
/* don't want Expose on the parent or vt. It is better to use
scr_touch or we get a great deal of flicker otherwise: */
XClearWindow (target->dpy, target->parent[0]);