… | |
… | |
1850 | mouse_report (ev); |
1850 | mouse_report (ev); |
1851 | } |
1851 | } |
1852 | #else |
1852 | #else |
1853 | MEvent.button = ev.button; |
1853 | MEvent.button = ev.button; |
1854 | mouse_report (ev); |
1854 | mouse_report (ev); |
1855 | #endif /* MOUSE_REPORT_DOUBLECLICK */ |
1855 | #endif /* MOUSE_REPORT_DOUBLECLICK */ |
1856 | |
1856 | |
1857 | } |
1857 | } |
1858 | else |
1858 | else |
1859 | { |
1859 | { |
1860 | if (ev.button != MEvent.button) |
1860 | if (ev.button != MEvent.button) |
… | |
… | |
1954 | tt_printf ("\033[5~"); |
1954 | tt_printf ("\033[5~"); |
1955 | break; |
1955 | break; |
1956 | } |
1956 | } |
1957 | } |
1957 | } |
1958 | else |
1958 | else |
1959 | #endif /* NO_SCROLLBAR_REPORT */ |
1959 | #endif /* NO_SCROLLBAR_REPORT */ |
1960 | |
1960 | |
1961 | { |
1961 | { |
1962 | char upordown = 0; |
1962 | char upordown = 0; |
1963 | |
1963 | |
1964 | if (scrollBar.style == R_SB_NEXT) |
1964 | if (scrollBar.style == R_SB_NEXT) |
… | |
… | |
2101 | mouse_report (ev); |
2101 | mouse_report (ev); |
2102 | } |
2102 | } |
2103 | #else /* MOUSE_REPORT_DOUBLECLICK */ |
2103 | #else /* MOUSE_REPORT_DOUBLECLICK */ |
2104 | MEvent.button = AnyButton; |
2104 | MEvent.button = AnyButton; |
2105 | mouse_report (ev); |
2105 | mouse_report (ev); |
2106 | #endif /* MOUSE_REPORT_DOUBLECLICK */ |
2106 | #endif /* MOUSE_REPORT_DOUBLECLICK */ |
2107 | return; |
2107 | return; |
2108 | } |
2108 | } |
2109 | |
2109 | |
2110 | /* |
2110 | /* |
2111 | * dumb hack to compensate for the failure of click-and-drag |
2111 | * dumb hack to compensate for the failure of click-and-drag |
… | |
… | |
2227 | |
2227 | |
2228 | if (!option (Opt_jumpScroll) || refresh_count >= nrow - 1) |
2228 | if (!option (Opt_jumpScroll) || refresh_count >= nrow - 1) |
2229 | { |
2229 | { |
2230 | refresh_count = 0; |
2230 | refresh_count = 0; |
2231 | |
2231 | |
2232 | if (!option (Opt_skipScroll) || ev::ev_time () > ev::now () + 1. / 60.) |
2232 | if (!option (Opt_skipScroll) || ev_time () > ev::now () + 1. / 60.) |
2233 | { |
2233 | { |
2234 | refreshnow = true; |
2234 | refreshnow = true; |
2235 | ch = NOCHAR; |
2235 | ch = NOCHAR; |
2236 | break; |
2236 | break; |
2237 | } |
2237 | } |
… | |
… | |
2448 | } |
2448 | } |
2449 | } |
2449 | } |
2450 | |
2450 | |
2451 | pclose_printer (fd); |
2451 | pclose_printer (fd); |
2452 | } |
2452 | } |
2453 | #endif /* PRINTPIPE */ |
2453 | #endif /* PRINTPIPE */ |
2454 | /*}}} */ |
2454 | /*}}} */ |
2455 | |
2455 | |
2456 | /* *INDENT-OFF* */ |
2456 | /* *INDENT-OFF* */ |
2457 | enum { |
2457 | enum { |
2458 | C1_40 = 0x40, |
2458 | C1_40 = 0x40, |