if (scrollBar.state)
{
- sb_w = scrollbar_TotalWidth ();
+ sb_w = scrollBar.total_width ();
szHint.base_width += sb_w;
if (!option (Opt_scrollBar_right))
{
XMoveResizeWindow (dpy, scrollBar.win,
window_sb_x, 0,
- scrollbar_TotalWidth (), szHint.height);
+ scrollBar.total_width (), szHint.height);
resize_scrollbar ();
}
scrollBar.win = XCreateSimpleWindow (dpy,
parent[0],
window_sb_x, 0,
- scrollbar_TotalWidth (),
+ scrollBar.total_width (),
szHint.height,
0,
pix_colors[Color_fg],
return y > end;
return false;
}
+ unsigned total_width ()
+ {
+ return width + shadow * 2;
+ }
};
-#define scrollbar_TotalWidth() (scrollBar.width + scrollBar.shadow * 2)
-
#define SCROLLNEXT_MINHEIGHT SB_THUMB_MIN_HEIGHT
#define SCROLLRXVT_MINHEIGHT 10