… | |
… | |
288 | } |
288 | } |
289 | |
289 | |
290 | static int |
290 | static int |
291 | hex_keyval (XKeyEvent &ev) |
291 | hex_keyval (XKeyEvent &ev) |
292 | { |
292 | { |
293 | // check wether this event corresponds to a hex digit |
293 | // check whether this event corresponds to a hex digit |
294 | // if the modifiers had not been pressed. |
294 | // if the modifiers had not been pressed. |
295 | for (int index = 0; index < 8; index++) |
295 | for (int index = 0; index < 8; index++) |
296 | { |
296 | { |
297 | KeySym k = XLookupKeysym (&ev, index); |
297 | KeySym k = XLookupKeysym (&ev, index); |
298 | |
298 | |
… | |
… | |
1033 | } |
1033 | } |
1034 | |
1034 | |
1035 | display->flush (); |
1035 | display->flush (); |
1036 | } |
1036 | } |
1037 | |
1037 | |
1038 | /* checks wether a refresh is requested and starts the refresh timer */ |
1038 | /* checks whether a refresh is requested and starts the refresh timer */ |
1039 | void |
1039 | void |
1040 | rxvt_term::refresh_check () |
1040 | rxvt_term::refresh_check () |
1041 | { |
1041 | { |
1042 | if (want_refresh && !flush_ev.is_active ()) |
1042 | if (want_refresh && !flush_ev.is_active ()) |
1043 | flush_ev.start (1. / 60.); // refresh at max. 60 Hz normally |
1043 | flush_ev.start (1. / 60.); // refresh at max. 60 Hz normally |
… | |
… | |
1137 | // this should really be sched_yield(), but the linux guys thought |
1137 | // this should really be sched_yield(), but the linux guys thought |
1138 | // that giving a process calling sched_yield () less cpu time than |
1138 | // that giving a process calling sched_yield () less cpu time than |
1139 | // ones with high nice levels is a useful thing to do. It surely is is |
1139 | // ones with high nice levels is a useful thing to do. It surely is is |
1140 | // allowed by the sus... as is returning ENOSYS. |
1140 | // allowed by the sus... as is returning ENOSYS. |
1141 | // since the linux guys additionally thought that breaking the only |
1141 | // since the linux guys additionally thought that breaking the only |
1142 | // known workaroudn against their unusable sched_yield hack is cool, |
1142 | // known workaround against their unusable sched_yield hack is cool, |
1143 | // we just nanosleep a bit and hope for the best. |
1143 | // we just nanosleep a bit and hope for the best. |
1144 | |
1144 | |
1145 | struct timespec ts = { 0, 1000 }; |
1145 | struct timespec ts = { 0, 1000 }; |
1146 | nanosleep (&ts, 0); |
1146 | nanosleep (&ts, 0); |
1147 | |
1147 | |