changeset 152:05f606cfb9e4

[/trunk] Changeset 164 by mikael * Jabber was disconnecting when one was resizing intensively the window. Don't know why, but it seems to be fixed with this patch...
author mikael
date Sun, 01 May 2005 04:05:40 +0000
parents b69c0b7a23e3
children ae0844311710
files mcabber/src/main.c
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mcabber/src/main.c	Sun May 01 03:14:19 2005 +0000
+++ b/mcabber/src/main.c	Sun May 01 04:05:40 2005 +0000
@@ -203,10 +203,13 @@
     // returning ERR until a real key is pressed :-(
     if (key != ERR)
       ret = process_key(key);
-    else if (++refresh % 2)
+    else if (refresh++ > 1) {
       doupdate();
+      refresh = 0;
+    }
 
-    jb_main();
+    if (key != KEY_RESIZE)
+      jb_main();
     if (update_roster)
       scr_DrawRoster();
   }