--- rxvt-unicode/src/scrollbar.h 2007/12/29 12:03:39 1.1 +++ rxvt-unicode/src/scrollbar.h 2007/12/29 14:25:43 1.2 @@ -14,6 +14,7 @@ unsigned int bot; /* slider bottom position */ unsigned int style; /* style: rxvt, xterm, next */ unsigned int width; /* scrollbar width */ + int sb_shadow; /* scrollbar shadow width */ Window win; int (rxvt_term::*update)(int, int, int, int); @@ -23,6 +24,7 @@ void setDn() { state = 'D'; } } scrollBar_t; +#define scrollbar_TotalWidth() (scrollBar.width + scrollBar.sb_shadow * 2) #define scrollbar_isMotion() (scrollBar.state == 'm') #define scrollbar_isUp() (scrollBar.state == 'U') #define scrollbar_isDn() (scrollBar.state == 'D')