summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2004-12-21 19:11:38 +0000
committerSebastien Helleu <flashcode@flashtux.org>2004-12-21 19:11:38 +0000
commitecafff21ce0a6389a41d95b8cfcb9e8fbf8f051b (patch)
treefb5f5db4684edd87dd30cc31ef0323104b589050
parentcf9d394e3a661e1c19df502a51fafe5d01cfab46 (diff)
downloadweechat-ecafff21ce0a6389a41d95b8cfcb9e8fbf8f051b.zip
Changes in main event loop: treats keyboard input & servers messages at same time
-rw-r--r--src/gui/curses/gui-input.c15
-rw-r--r--weechat/src/gui/curses/gui-input.c15
2 files changed, 10 insertions, 20 deletions
diff --git a/src/gui/curses/gui-input.c b/src/gui/curses/gui-input.c
index 43c4c19f6..f78b87d56 100644
--- a/src/gui/curses/gui-input.c
+++ b/src/gui/curses/gui-input.c
@@ -630,18 +630,13 @@ gui_main_loop ()
if (select (FD_SETSIZE, &read_fd, NULL, NULL, &timeout))
{
if (FD_ISSET (STDIN_FILENO, &read_fd))
- {
gui_read_keyb ();
- }
- else
+ for (ptr_server = irc_servers; ptr_server;
+ ptr_server = ptr_server->next_server)
{
- for (ptr_server = irc_servers; ptr_server;
- ptr_server = ptr_server->next_server)
- {
- if ((ptr_server->sock4 >= 0) &&
- (FD_ISSET (ptr_server->sock4, &read_fd)))
- server_recv (ptr_server);
- }
+ if ((ptr_server->sock4 >= 0) &&
+ (FD_ISSET (ptr_server->sock4, &read_fd)))
+ server_recv (ptr_server);
}
}
diff --git a/weechat/src/gui/curses/gui-input.c b/weechat/src/gui/curses/gui-input.c
index 43c4c19f6..f78b87d56 100644
--- a/weechat/src/gui/curses/gui-input.c
+++ b/weechat/src/gui/curses/gui-input.c
@@ -630,18 +630,13 @@ gui_main_loop ()
if (select (FD_SETSIZE, &read_fd, NULL, NULL, &timeout))
{
if (FD_ISSET (STDIN_FILENO, &read_fd))
- {
gui_read_keyb ();
- }
- else
+ for (ptr_server = irc_servers; ptr_server;
+ ptr_server = ptr_server->next_server)
{
- for (ptr_server = irc_servers; ptr_server;
- ptr_server = ptr_server->next_server)
- {
- if ((ptr_server->sock4 >= 0) &&
- (FD_ISSET (ptr_server->sock4, &read_fd)))
- server_recv (ptr_server);
- }
+ if ((ptr_server->sock4 >= 0) &&
+ (FD_ISSET (ptr_server->sock4, &read_fd)))
+ server_recv (ptr_server);
}
}