comparison mcabber/src/main.c @ 1618:9296987856d9

Process keycodes faster
author franky
date Mon, 12 Oct 2009 14:25:00 +0200
parents 6db9f403f707
children a8a3d404ccce
comparison
equal deleted inserted replaced
1617:9ca672ee884f 1618:9296987856d9
260 return FALSE; 260 return FALSE;
261 } 261 }
262 scr_DoUpdate(); 262 scr_DoUpdate();
263 scr_Getch(&kcode); 263 scr_Getch(&kcode);
264 264
265 if (kcode.value != ERR) { 265 while (kcode.value != ERR) {
266 process_key(kcode); 266 process_key(kcode);
267 } else { 267 scr_DoUpdate();
268 scr_CheckAutoAway(FALSE); 268 scr_Getch(&kcode);
269 269 }
270 if (update_roster) 270 scr_CheckAutoAway(FALSE);
271 scr_DrawRoster(); 271
272 272 if (update_roster)
273 hk_mainloop(); 273 scr_DrawRoster();
274 } 274
275 hk_mainloop();
275 return TRUE; 276 return TRUE;
276 } 277 }
277 278
278 int main(int argc, char **argv) 279 int main(int argc, char **argv)
279 { 280 {