changeset 1618:9296987856d9

Process keycodes faster
author franky
date Mon, 12 Oct 2009 14:25:00 +0200
parents 9ca672ee884f
children 2a82e6654c04
files mcabber/src/main.c
diffstat 1 files changed, 8 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/mcabber/src/main.c	Sun Oct 11 22:47:12 2009 +0200
+++ b/mcabber/src/main.c	Mon Oct 12 14:25:00 2009 +0200
@@ -262,16 +262,17 @@
   scr_DoUpdate();
   scr_Getch(&kcode);
 
-  if (kcode.value != ERR) {
+  while (kcode.value != ERR) {
     process_key(kcode);
-  } else {
-    scr_CheckAutoAway(FALSE);
+    scr_DoUpdate();
+    scr_Getch(&kcode);
+  }
+  scr_CheckAutoAway(FALSE);
 
-    if (update_roster)
-      scr_DrawRoster();
+  if (update_roster)
+    scr_DrawRoster();
 
-    hk_mainloop();
-  }
+  hk_mainloop();
   return TRUE;
 }