--- rxvt-unicode/src/scrollbar.C 2006/01/15 06:02:41 1.30 +++ rxvt-unicode/src/scrollbar.C 2006/01/24 19:40:12 1.33 @@ -119,9 +119,6 @@ 0, pix_colors[Color_fg], pix_colors[Color_border]); -#ifdef DEBUG_X - XStoreName (display->display, scrollBar.win, "scrollbar"); -#endif XDefineCursor (display->display, scrollBar.win, leftptr_cursor); XSelectInput (display->display, scrollBar.win, @@ -150,7 +147,7 @@ #ifdef HAVE_SCROLLBARS int top, bot, len, adj; - if (!scrollbar_visible ()) + if (!scrollBar.state) return 0; if (update) @@ -231,9 +228,9 @@ if (thickness && (i = atoi (thickness)) >= SB_WIDTH_MINIMUM) width = min (i, SB_WIDTH_MAXIMUM); -# if defined(RXVT_SCROLLBAR) +# ifdef RXVT_SCROLLBAR if (! OPTION (Opt_scrollBar_floating) && style == R_SB_RXVT) - sb_shadow = MENU_SHADOW; + sb_shadow = 2; # endif scrollBar.style = style;