botShadowGC = XCreateGC (term->dpy, term->vt, GCForeground, &gcvalue);
gcvalue.foreground = term->pix_colors[ (term->depth <= 2 ? Color_fg : Color_scroll)];
scrollbarGC = XCreateGC (term->dpy, term->vt, GCForeground, &gcvalue);
- if (shadow)
+ if (!term->option (Opt_scrollBar_floating))
{
+ shadow = SHADOW_WIDTH;
XSetWindowBackground (term->dpy, win, term->pix_colors_focused[Color_trough]);
XClearWindow (term->dpy, win);
}
if (thickness && (i = atoi (thickness)) >= SB_WIDTH_MINIMUM)
width = min (i, SB_WIDTH_MAXIMUM);
-# ifdef RXVT_SCROLLBAR
- if (! term->option (Opt_scrollBar_floating) && style == R_SB_RXVT)
- shadow = SHADOW_WIDTH;
-# endif
-
this->style = style;
this->width = width;