… | |
… | |
1047 | void |
1047 | void |
1048 | rxvt_term::refresh_check () |
1048 | rxvt_term::refresh_check () |
1049 | { |
1049 | { |
1050 | if (want_refresh && !flush_ev.is_active ()) |
1050 | if (want_refresh && !flush_ev.is_active ()) |
1051 | flush_ev.start (1. / 60.); // refresh at max. 60 Hz normally |
1051 | flush_ev.start (1. / 60.); // refresh at max. 60 Hz normally |
|
|
1052 | |
|
|
1053 | display->flush (); |
1052 | } |
1054 | } |
1053 | |
1055 | |
1054 | void |
1056 | void |
1055 | rxvt_term::flush_cb (ev::timer &w, int revents) |
1057 | rxvt_term::flush_cb (ev::timer &w, int revents) |
1056 | { |
1058 | { |
… | |
… | |
1209 | if (cmd_parse ()) |
1211 | if (cmd_parse ()) |
1210 | break; |
1212 | break; |
1211 | |
1213 | |
1212 | if (revents & ev::WRITE) |
1214 | if (revents & ev::WRITE) |
1213 | pty_write (); |
1215 | pty_write (); |
|
|
1216 | |
|
|
1217 | refresh_check (); |
1214 | } |
1218 | } |
1215 | |
1219 | |
1216 | void |
1220 | void |
1217 | rxvt_term::pointer_unblank () |
1221 | rxvt_term::pointer_unblank () |
1218 | { |
1222 | { |
… | |
… | |
2308 | } |
2312 | } |
2309 | |
2313 | |
2310 | ch = NOCHAR; |
2314 | ch = NOCHAR; |
2311 | } |
2315 | } |
2312 | } |
2316 | } |
2313 | |
|
|
2314 | refresh_check (); |
|
|
2315 | |
2317 | |
2316 | return flag; |
2318 | return flag; |
2317 | } |
2319 | } |
2318 | |
2320 | |
2319 | // read the next character |
2321 | // read the next character |