… | |
… | |
2 | * File: scrollbar-rxvt.C |
2 | * File: scrollbar-rxvt.C |
3 | *----------------------------------------------------------------------* |
3 | *----------------------------------------------------------------------* |
4 | * |
4 | * |
5 | * Copyright (c) 1997,1998 mj olesen <olesen@me.QueensU.CA> |
5 | * Copyright (c) 1997,1998 mj olesen <olesen@me.QueensU.CA> |
6 | * Copyright (c) 1999-2001 Geoff Wing <gcw@pobox.com> |
6 | * Copyright (c) 1999-2001 Geoff Wing <gcw@pobox.com> |
7 | * Copyright (c) 2004-2006 Marc Lehmann <pcg@goof.com> |
7 | * Copyright (c) 2004-2006 Marc Lehmann <schmorp@schmorp.de> |
8 | * |
8 | * |
9 | * This program is free software; you can redistribute it and/or modify |
9 | * This program is free software; you can redistribute it and/or modify |
10 | * it under the terms of the GNU General Public License as published by |
10 | * it under the terms of the GNU General Public License as published by |
11 | * the Free Software Foundation; either version 2 of the License, or |
11 | * the Free Software Foundation; either version 2 of the License, or |
12 | * (at your option) any later version. |
12 | * (at your option) any later version. |
… | |
… | |
162 | topShadowGC = XCreateGC (term->dpy, term->vt, GCForeground, &gcvalue); |
162 | topShadowGC = XCreateGC (term->dpy, term->vt, GCForeground, &gcvalue); |
163 | gcvalue.foreground = term->pix_colors[Color_bottomShadow]; |
163 | gcvalue.foreground = term->pix_colors[Color_bottomShadow]; |
164 | botShadowGC = XCreateGC (term->dpy, term->vt, GCForeground, &gcvalue); |
164 | botShadowGC = XCreateGC (term->dpy, term->vt, GCForeground, &gcvalue); |
165 | gcvalue.foreground = term->pix_colors[ (term->depth <= 2 ? Color_fg : Color_scroll)]; |
165 | gcvalue.foreground = term->pix_colors[ (term->depth <= 2 ? Color_fg : Color_scroll)]; |
166 | scrollbarGC = XCreateGC (term->dpy, term->vt, GCForeground, &gcvalue); |
166 | scrollbarGC = XCreateGC (term->dpy, term->vt, GCForeground, &gcvalue); |
167 | if (shadow) |
167 | if (!term->option (Opt_scrollBar_floating)) |
168 | { |
168 | { |
|
|
169 | shadow = SHADOW_WIDTH; |
169 | XSetWindowBackground (term->dpy, win, term->pix_colors_focused[Color_trough]); |
170 | XSetWindowBackground (term->dpy, win, term->pix_colors_focused[Color_trough]); |
170 | XClearWindow (term->dpy, win); |
171 | XClearWindow (term->dpy, win); |
171 | } |
172 | } |
172 | } |
173 | } |
173 | else |
174 | else |