… | |
… | |
148 | { |
148 | { |
149 | int ret = 0; |
149 | int ret = 0; |
150 | #ifdef HAVE_SCROLLBARS |
150 | #ifdef HAVE_SCROLLBARS |
151 | int top, bot, len, adj; |
151 | int top, bot, len, adj; |
152 | |
152 | |
153 | if (!scrollbar_visible ()) |
153 | if (!scrollBar.state) |
154 | return 0; |
154 | return 0; |
155 | |
155 | |
156 | if (update) |
156 | if (update) |
157 | { |
157 | { |
158 | top = view_start - top_row; |
158 | top = view_start - top_row; |
… | |
… | |
229 | |
229 | |
230 | if (style != R_SB_NEXT) /* dishonour request - for now */ |
230 | if (style != R_SB_NEXT) /* dishonour request - for now */ |
231 | if (thickness && (i = atoi (thickness)) >= SB_WIDTH_MINIMUM) |
231 | if (thickness && (i = atoi (thickness)) >= SB_WIDTH_MINIMUM) |
232 | width = min (i, SB_WIDTH_MAXIMUM); |
232 | width = min (i, SB_WIDTH_MAXIMUM); |
233 | |
233 | |
234 | # if defined(RXVT_SCROLLBAR) |
234 | # ifdef RXVT_SCROLLBAR |
235 | if (! OPTION (Opt_scrollBar_floating) && style == R_SB_RXVT) |
235 | if (! OPTION (Opt_scrollBar_floating) && style == R_SB_RXVT) |
236 | sb_shadow = MENU_SHADOW; |
236 | sb_shadow = 2; |
237 | # endif |
237 | # endif |
238 | |
238 | |
239 | scrollBar.style = style; |
239 | scrollBar.style = style; |
240 | scrollBar.width = width; |
240 | scrollBar.width = width; |
241 | |
241 | |