… | |
… | |
1077 | |
1077 | |
1078 | #ifdef SELECTION_SCROLLING |
1078 | #ifdef SELECTION_SCROLLING |
1079 | void |
1079 | void |
1080 | rxvt_term::sel_scroll_cb (ev::timer &w, int revents) |
1080 | rxvt_term::sel_scroll_cb (ev::timer &w, int revents) |
1081 | { |
1081 | { |
1082 | if (scr_page (scroll_selection_dir, scroll_selection_lines)) |
1082 | if (scr_page (scroll_selection_lines)) |
1083 | { |
1083 | { |
1084 | selection_extend (selection_save_x, selection_save_y, selection_save_state); |
1084 | selection_extend (selection_save_x, selection_save_y, selection_save_state); |
1085 | want_refresh = 1; |
1085 | want_refresh = 1; |
1086 | refresh_check (); |
1086 | refresh_check (); |
1087 | } |
1087 | } |
… | |
… | |
1638 | |
1638 | |
1639 | #ifdef SELECTION_SCROLLING |
1639 | #ifdef SELECTION_SCROLLING |
1640 | if (ev.xbutton.y < int_bwidth |
1640 | if (ev.xbutton.y < int_bwidth |
1641 | || Pixel2Row (ev.xbutton.y) > (nrow-1)) |
1641 | || Pixel2Row (ev.xbutton.y) > (nrow-1)) |
1642 | { |
1642 | { |
|
|
1643 | page_dirn scroll_selection_dir; |
1643 | int dist; |
1644 | int dist; |
1644 | |
1645 | |
1645 | /* don't clobber the current delay if we are |
1646 | /* don't clobber the current delay if we are |
1646 | * already in the middle of scrolling. |
1647 | * already in the middle of scrolling. |
1647 | */ |
1648 | */ |
… | |
… | |
1670 | scroll_selection_lines = Pixel2Height (dist) |
1671 | scroll_selection_lines = Pixel2Height (dist) |
1671 | / SELECTION_SCROLL_LINE_SPEEDUP |
1672 | / SELECTION_SCROLL_LINE_SPEEDUP |
1672 | + 1; |
1673 | + 1; |
1673 | min_it (scroll_selection_lines, |
1674 | min_it (scroll_selection_lines, |
1674 | SELECTION_SCROLL_MAX_LINES); |
1675 | SELECTION_SCROLL_MAX_LINES); |
|
|
1676 | scroll_selection_lines *= scroll_selection_dir; |
1675 | } |
1677 | } |
1676 | else |
1678 | else |
1677 | { |
1679 | { |
1678 | /* we are within the text window, so we |
1680 | /* we are within the text window, so we |
1679 | * shouldn't be scrolling |
1681 | * shouldn't be scrolling |