… | |
… | |
1049 | make_current (); |
1049 | make_current (); |
1050 | |
1050 | |
1051 | display->flush (); |
1051 | display->flush (); |
1052 | |
1052 | |
1053 | if (want_refresh && !flush_ev.active) |
1053 | if (want_refresh && !flush_ev.active) |
1054 | flush_ev.start (1. / 60.); // refresh at max. 60 hz normally |
1054 | flush_ev.start (1. / 60.); // refresh at max. 60 Hz normally |
1055 | } |
1055 | } |
1056 | |
1056 | |
1057 | void |
1057 | void |
1058 | rxvt_term::flush_cb (ev::timer &w, int revents) |
1058 | rxvt_term::flush_cb (ev::timer &w, int revents) |
1059 | { |
1059 | { |
… | |
… | |
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, |
… | |
… | |
2751 | nargs = 0; |
2751 | nargs = 0; |
2752 | |
2752 | |
2753 | priv = 0; |
2753 | priv = 0; |
2754 | ch = cmd_getc (); |
2754 | ch = cmd_getc (); |
2755 | if (ch >= '<' && ch <= '?') |
2755 | if (ch >= '<' && ch <= '?') |
|
|
2756 | { |
2756 | { /* '<' '=' '>' '?' */ |
2757 | /* '<' '=' '>' '?' */ |
2757 | priv = ch; |
2758 | priv = ch; |
2758 | ch = cmd_getc (); |
2759 | ch = cmd_getc (); |
2759 | } |
2760 | } |
2760 | |
2761 | |
2761 | /* read any numerical arguments */ |
2762 | /* read any numerical arguments */ |
… | |
… | |
3894 | rxvt_term::process_graphics () |
3895 | rxvt_term::process_graphics () |
3895 | { |
3896 | { |
3896 | unicode_t ch, cmd = cmd_getc (); |
3897 | unicode_t ch, cmd = cmd_getc (); |
3897 | |
3898 | |
3898 | if (cmd == 'Q') |
3899 | if (cmd == 'Q') |
|
|
3900 | { |
3899 | { /* query graphics */ |
3901 | /* query graphics */ |
3900 | tt_printf ("\033G0\012"); /* no graphics */ |
3902 | tt_printf ("\033G0\012"); /* no graphics */ |
3901 | return; |
3903 | return; |
3902 | } |
3904 | } |
3903 | /* swallow other graphics sequences until terminating ':' */ |
3905 | /* swallow other graphics sequences until terminating ':' */ |
3904 | do |
3906 | do |