--- rxvt-unicode/src/scrollbar-rxvt.C 2010/03/30 10:26:22 1.39 +++ rxvt-unicode/src/scrollbar-rxvt.C 2011/02/21 07:41:04 1.41 @@ -4,7 +4,7 @@ * * Copyright (c) 1997,1998 mj olesen * Copyright (c) 1999-2001 Geoff Wing - * Copyright (c) 2004-2006 Marc Lehmann + * Copyright (c) 2004-2006 Marc Lehmann * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -164,8 +164,9 @@ 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); }