From 209fe89d27b8f2790dbf4ac48455dcf79c875e77 Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Fri, 24 Dec 2004 12:46:00 +0000 Subject: Fixed bug when resizing window (input not displayed after resize) --- src/gui/curses/gui-input.c | 15 ++++++++++----- weechat/src/gui/curses/gui-input.c | 15 ++++++++++----- 2 files changed, 20 insertions(+), 10 deletions(-) diff --git a/src/gui/curses/gui-input.c b/src/gui/curses/gui-input.c index e6ba1fa1d..dfa245b6d 100644 --- a/src/gui/curses/gui-input.c +++ b/src/gui/curses/gui-input.c @@ -633,13 +633,18 @@ gui_main_loop () if (select (FD_SETSIZE, &read_fd, NULL, NULL, &timeout)) { if (FD_ISSET (STDIN_FILENO, &read_fd)) + { gui_read_keyb (); - for (ptr_server = irc_servers; ptr_server; - ptr_server = ptr_server->next_server) + } + else { - if ((ptr_server->sock4 >= 0) && - (FD_ISSET (ptr_server->sock4, &read_fd))) - server_recv (ptr_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); + } } } diff --git a/weechat/src/gui/curses/gui-input.c b/weechat/src/gui/curses/gui-input.c index e6ba1fa1d..dfa245b6d 100644 --- a/weechat/src/gui/curses/gui-input.c +++ b/weechat/src/gui/curses/gui-input.c @@ -633,13 +633,18 @@ gui_main_loop () if (select (FD_SETSIZE, &read_fd, NULL, NULL, &timeout)) { if (FD_ISSET (STDIN_FILENO, &read_fd)) + { gui_read_keyb (); - for (ptr_server = irc_servers; ptr_server; - ptr_server = ptr_server->next_server) + } + else { - if ((ptr_server->sock4 >= 0) && - (FD_ISSET (ptr_server->sock4, &read_fd))) - server_recv (ptr_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); + } } } -- cgit v1.2.3