--- rxvt-unicode/src/scrollbar-rxvt.C 2011/02/21 07:41:04 1.41 +++ rxvt-unicode/src/scrollbar-rxvt.C 2012/10/02 10:29:12 1.44 @@ -60,8 +60,8 @@ sz = sb->width; sz2 = sz / 2; - if ((dirn == UP && sb->state == STATE_UP) - || (dirn == DN && sb->state == STATE_DOWN)) + if ((dirn == UP && sb->state == SB_STATE_UP) + || (dirn == DN && sb->state == SB_STATE_DOWN)) { top = sb->botShadowGC; bot = sb->topShadowGC; @@ -152,11 +152,11 @@ { int sbwidth = (int)width; - if ((init & R_SB_RXVT) == 0) + if ((init & SB_STYLE_RXVT) == 0) { XGCValues gcvalue; - init |= R_SB_RXVT; + init |= SB_STYLE_RXVT; gcvalue.foreground = term->pix_colors[Color_topShadow]; topShadowGC = XCreateGC (term->dpy, term->vt, GCForeground, &gcvalue); @@ -164,12 +164,6 @@ 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 (!term->option (Opt_scrollBar_floating)) - { - shadow = SHADOW_WIDTH; - XSetWindowBackground (term->dpy, win, term->pix_colors_focused[Color_trough]); - XClearWindow (term->dpy, win); - } } else {