… | |
… | |
47 | |
47 | |
48 | if (update) |
48 | if (update) |
49 | { |
49 | { |
50 | if (last_top < scrollBar.top) |
50 | if (last_top < scrollBar.top) |
51 | XClearArea (dpy, scrollBar.win, |
51 | XClearArea (dpy, scrollBar.win, |
52 | scrollBar.shadow, last_top, |
52 | 0, last_top, |
53 | sbwidth + 1, scrollBar.top - last_top, False); |
53 | sbwidth + 1, scrollBar.top - last_top, False); |
54 | |
54 | |
55 | if (scrollBar.bot < last_bot) |
55 | if (scrollBar.bot < last_bot) |
56 | XClearArea (dpy, scrollBar.win, |
56 | XClearArea (dpy, scrollBar.win, |
57 | scrollBar.shadow, scrollBar.bot, |
57 | 0, scrollBar.bot, |
58 | sbwidth + 1, last_bot - scrollBar.bot, False); |
58 | sbwidth + 1, last_bot - scrollBar.bot, False); |
59 | } |
59 | } |
60 | else |
60 | else |
61 | XClearWindow (dpy, scrollBar.win); |
61 | XClearWindow (dpy, scrollBar.win); |
62 | |
62 | |