diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2005-02-13 19:59:11 +0000 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2005-02-13 19:59:11 +0000 |
commit | b3d66118b4ebb316b9a3dc74e7f53cca614fa2e2 (patch) | |
tree | 5b83fb823522dc033490d96909ed9f58ca48ec7a /src/irc | |
parent | 0473d2c8db2875bfd7049a94f662984a8e8f815b (diff) | |
download | weechat-b3d66118b4ebb316b9a3dc74e7f53cca614fa2e2.zip |
Fixed display bugs when many windows are opened
Diffstat (limited to 'src/irc')
-rw-r--r-- | src/irc/irc-recv.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/irc/irc-recv.c b/src/irc/irc-recv.c index 23439076e..85f43188e 100644 --- a/src/irc/irc-recv.c +++ b/src/irc/irc-recv.c @@ -628,6 +628,7 @@ irc_cmd_recv_nick (t_irc_server *server, char *host, char *arguments) t_irc_channel *ptr_channel; t_irc_nick *ptr_nick; int nick_is_me; + t_gui_window *ptr_win; t_gui_buffer *ptr_buffer; /* no host => we can't identify sender of message! */ @@ -698,9 +699,18 @@ irc_cmd_recv_nick (t_irc_server *server, char *host, char *arguments) { free (server->nick); server->nick = strdup (arguments); + gui_draw_buffer_status (gui_current_window->buffer, 1); + for (ptr_win = gui_windows; ptr_win; ptr_win = ptr_win->next_window) + { + if (ptr_win->buffer->server == server) + gui_draw_buffer_input (ptr_win->buffer, 1); + } + } + else + { + gui_draw_buffer_status (gui_current_window->buffer, 1); + gui_draw_buffer_input (gui_current_window->buffer, 1); } - gui_draw_buffer_status (gui_current_window->buffer, 1); - gui_draw_buffer_input (gui_current_window->buffer, 1); return 0; } |