--- rxvt-unicode/src/scrollbar-xterm.C 2006/02/20 22:42:01 1.22 +++ rxvt-unicode/src/scrollbar-xterm.C 2007/12/29 14:43:44 1.28 @@ -49,7 +49,7 @@ rxvt_fatal ("can't create bitmap\n"); gcvalue.fill_style = FillOpaqueStippled; - gcvalue.foreground = pix_colors_focused[Color_fg]; + gcvalue.foreground = pix_colors_focused[Color_scroll]; gcvalue.background = pix_colors_focused[Color_bg]; xscrollbarGC = XCreateGC (dpy, scrollBar.win, @@ -59,17 +59,18 @@ ShadowGC = XCreateGC (dpy, scrollBar.win, GCForeground, &gcvalue); } + xsb = option (Opt_scrollBar_right) ? 1 : 0; + if (update) { - xsb = OPTION (Opt_scrollBar_right) ? 1 : 0; if (last_top < scrollBar.top) XClearArea (dpy, scrollBar.win, - sb_shadow + xsb, last_top, + scrollBar.shadow + xsb, last_top, sbwidth, (scrollBar.top - last_top), False); if (scrollBar.bot < last_bot) XClearArea (dpy, scrollBar.win, - sb_shadow + xsb, scrollBar.bot, + scrollBar.shadow + xsb, scrollBar.bot, sbwidth, (last_bot - scrollBar.bot), False); } else @@ -84,5 +85,5 @@ xsb ? 0 : sbwidth, scrollBar.end); return 1; } -#endif /* XTERM_SCROLLBAR */ +#endif /* XTERM_SCROLLBAR */ /*----------------------- end-of-file (C source) -----------------------*/