… | |
… | |
118 | scrollbar_TotalWidth (), |
118 | scrollbar_TotalWidth (), |
119 | szHint.height, |
119 | szHint.height, |
120 | 0, |
120 | 0, |
121 | pix_colors[Color_fg], |
121 | pix_colors[Color_fg], |
122 | pix_colors[Color_border]); |
122 | pix_colors[Color_border]); |
123 | XDefineCursor (dpy, scrollBar.win, leftptr_cursor); |
123 | XDefineCursor (dpy, scrollBar.win, scrollBar.leftptr_cursor); |
124 | |
124 | |
125 | XSelectInput (dpy, scrollBar.win, |
125 | XSelectInput (dpy, scrollBar.win, |
126 | ExposureMask | ButtonPressMask | ButtonReleaseMask |
126 | ExposureMask | ButtonPressMask | ButtonReleaseMask |
127 | | Button1MotionMask | Button2MotionMask |
127 | | Button1MotionMask | Button2MotionMask |
128 | | Button3MotionMask); |
128 | | Button3MotionMask); |
… | |
… | |
244 | scrollBar.align = R_SB_ALIGN_TOP; |
244 | scrollBar.align = R_SB_ALIGN_TOP; |
245 | else if (strncasecmp (scrollalign, "bottom", 6) == 0) |
245 | else if (strncasecmp (scrollalign, "bottom", 6) == 0) |
246 | scrollBar.align = R_SB_ALIGN_BOTTOM; |
246 | scrollBar.align = R_SB_ALIGN_BOTTOM; |
247 | } |
247 | } |
248 | scrollBar.last_bot = scrollBar.last_state = -1; |
248 | scrollBar.last_bot = scrollBar.last_state = -1; |
|
|
249 | /* cursor scrollBar: Black-on-White */ |
|
|
250 | scrollBar.leftptr_cursor = XCreateFontCursor (dpy, XC_left_ptr); |
249 | #endif |
251 | #endif |
250 | } |
252 | } |
251 | |
253 | |
252 | /*----------------------- end-of-file (C source) -----------------------*/ |
254 | /*----------------------- end-of-file (C source) -----------------------*/ |
253 | |
255 | |