… | |
… | |
63 | |
63 | |
64 | if (update) |
64 | if (update) |
65 | { |
65 | { |
66 | if (last_top < scrollBar.top) |
66 | if (last_top < scrollBar.top) |
67 | XClearArea (dpy, scrollBar.win, |
67 | XClearArea (dpy, scrollBar.win, |
68 | scrollBar.sb_shadow + xsb, last_top, |
68 | scrollBar.shadow + xsb, last_top, |
69 | sbwidth, (scrollBar.top - last_top), False); |
69 | sbwidth, (scrollBar.top - last_top), False); |
70 | |
70 | |
71 | if (scrollBar.bot < last_bot) |
71 | if (scrollBar.bot < last_bot) |
72 | XClearArea (dpy, scrollBar.win, |
72 | XClearArea (dpy, scrollBar.win, |
73 | scrollBar.sb_shadow + xsb, scrollBar.bot, |
73 | scrollBar.shadow + xsb, scrollBar.bot, |
74 | sbwidth, (last_bot - scrollBar.bot), False); |
74 | sbwidth, (last_bot - scrollBar.bot), False); |
75 | } |
75 | } |
76 | else |
76 | else |
77 | XClearWindow (dpy, scrollBar.win); |
77 | XClearWindow (dpy, scrollBar.win); |
78 | |
78 | |