… | |
… | |
71 | window_sb_x, 0, |
71 | window_sb_x, 0, |
72 | total_width (), |
72 | total_width (), |
73 | term->szHint.height, |
73 | term->szHint.height, |
74 | 0, |
74 | 0, |
75 | term->pix_colors[Color_fg], |
75 | term->pix_colors[Color_fg], |
76 | term->pix_colors[Color_border]); |
76 | term->pix_colors[color ()]); |
77 | XDefineCursor (term->dpy, win, leftptr_cursor); |
77 | XDefineCursor (term->dpy, win, leftptr_cursor); |
78 | |
78 | |
79 | XSelectInput (term->dpy, win, |
79 | XSelectInput (term->dpy, win, |
80 | ExposureMask | ButtonPressMask | ButtonReleaseMask |
80 | ExposureMask | ButtonPressMask | ButtonReleaseMask |
81 | | Button1MotionMask | Button2MotionMask |
81 | | Button1MotionMask | Button2MotionMask |
… | |
… | |
231 | if (botShadowGC) XFreeGC (term->dpy, botShadowGC); |
231 | if (botShadowGC) XFreeGC (term->dpy, botShadowGC); |
232 | if (scrollbarGC) XFreeGC (term->dpy, scrollbarGC); |
232 | if (scrollbarGC) XFreeGC (term->dpy, scrollbarGC); |
233 | #endif |
233 | #endif |
234 | } |
234 | } |
235 | |
235 | |
|
|
236 | int |
|
|
237 | scrollBar_t::color () |
|
|
238 | { |
|
|
239 | if (style == SB_STYLE_RXVT && shadow) |
|
|
240 | return Color_trough; |
|
|
241 | else |
|
|
242 | return Color_border; |
|
|
243 | } |
|
|
244 | |
236 | void |
245 | void |
237 | scrollBar_t::update_data () |
246 | scrollBar_t::update_data () |
238 | { |
247 | { |
239 | #if defined(PLAIN_SCROLLBAR) |
248 | #if defined(PLAIN_SCROLLBAR) |
240 | if (style == SB_STYLE_PLAIN) |
249 | if (style == SB_STYLE_PLAIN) |