comparison mcabber/src/main.c @ 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 439b750d99fa
comparison
equal deleted inserted replaced
151:b69c0b7a23e3 152:05f606cfb9e4
201 // The refresh is really an ugly hack, but we need to call doupdate() 201 // The refresh is really an ugly hack, but we need to call doupdate()
202 // from time to time to catch the RESIZE events, because getch keep 202 // from time to time to catch the RESIZE events, because getch keep
203 // returning ERR until a real key is pressed :-( 203 // returning ERR until a real key is pressed :-(
204 if (key != ERR) 204 if (key != ERR)
205 ret = process_key(key); 205 ret = process_key(key);
206 else if (++refresh % 2) 206 else if (refresh++ > 1) {
207 doupdate(); 207 doupdate();
208 208 refresh = 0;
209 jb_main(); 209 }
210
211 if (key != KEY_RESIZE)
212 jb_main();
210 if (update_roster) 213 if (update_roster)
211 scr_DrawRoster(); 214 scr_DrawRoster();
212 } 215 }
213 216
214 jb_disconnect(); 217 jb_disconnect();