--- rxvt-unicode/src/scrollbar.C 2011/02/21 07:41:04 1.64 +++ rxvt-unicode/src/scrollbar.C 2011/04/07 12:19:41 1.66 @@ -74,7 +74,7 @@ { /* create the scrollbar window */ win = XCreateSimpleWindow (term->dpy, - term->parent[0], + term->parent, window_sb_x, 0, total_width (), term->szHint.height, @@ -194,6 +194,11 @@ 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;