[/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...
--- 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();
}