refresh_type = SLOW_REFRESH;
oldcursor.row = oldcursor.col = -1;
- last_bot = last_state = -1;
set_option (Opt_scrollBar);
set_option (Opt_scrollTtyOutput);
mouse_slip_wheel_speed,
#endif
refresh_count,
- last_bot, /* scrollbar last bottom position */
- last_top, /* scrollbar last top position */
- last_state, /* scrollbar last state */
window_vt_x,
window_vt_y,
window_sb_x,
scrollbar_minheight () + adj;
scrollBar.bot = (scrollBar.top + scrollbar_len);
/* no change */
- if (scrollBar.top == last_top
- && scrollBar.bot == last_bot
- && (scrollBar.state == last_state || !scrollbar_isUpDn ()))
+ if (scrollBar.top == scrollBar.last_top
+ && scrollBar.bot == scrollBar.last_bot
+ && (scrollBar.state == scrollBar.last_state || !scrollbar_isUpDn ()))
return 0;
}
- ret = (this->*scrollBar.update) (update, last_top, last_bot, scrollbar_len);
+ ret = (this->*scrollBar.update) (update, scrollBar.last_top, scrollBar.last_bot, scrollbar_len);
- last_top = scrollBar.top;
- last_bot = scrollBar.bot;
- last_state = scrollBar.state;
+ scrollBar.last_top = scrollBar.top;
+ scrollBar.last_bot = scrollBar.bot;
+ scrollBar.last_state = scrollBar.state;
#endif
return ret;
else if (strncasecmp (scrollalign, "bottom", 6) == 0)
scrollBar.align = R_SB_ALIGN_BOTTOM;
}
+ scrollBar.last_bot = scrollBar.last_state = -1;
#endif
}
unsigned int style; /* style: rxvt, xterm, next */
unsigned int width; /* scrollbar width */
int shadow; /* scrollbar shadow width */
+ int last_bot; /* scrollbar last bottom position */
+ int last_top; /* scrollbar last top position */
+ int last_state; /* scrollbar last state */
unsigned char align;
Window win;
int (rxvt_term::*update)(int, int, int, int);