summaryrefslogtreecommitdiff
path: root/src/gui/curses/gui-display.c
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2003-09-27 12:53:32 +0000
committerSebastien Helleu <flashcode@flashtux.org>2003-09-27 12:53:32 +0000
commit625480e448c8828c87c7f672847ea03822db1b0b (patch)
treee1180af48dca6125fe9ac419bc692f7fee999238 /src/gui/curses/gui-display.c
parentab6921ff85b49a7d636408400798e524e70f00e8 (diff)
downloadweechat-625480e448c8828c87c7f672847ea03822db1b0b.zip
Fixed display bug when nicklist is auto-resized.
Diffstat (limited to 'src/gui/curses/gui-display.c')
-rw-r--r--src/gui/curses/gui-display.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/gui/curses/gui-display.c b/src/gui/curses/gui-display.c
index 9ad67edac..39384562a 100644
--- a/src/gui/curses/gui-display.c
+++ b/src/gui/curses/gui-display.c
@@ -611,7 +611,8 @@ gui_draw_window_nick (t_gui_window *window)
if (CHANNEL(window) && CHANNEL(window)->nicks)
{
max_length = nick_get_max_length (CHANNEL(window));
- if ((max_length + 2) != window->win_nick_width)
+ if ((window == gui_current_window) &&
+ ((max_length + 2) != window->win_nick_width))
{
gui_calculate_pos_size (window);
delwin (window->win_chat);
@@ -624,7 +625,6 @@ gui_draw_window_nick (t_gui_window *window)
window->win_nick_width,
window->win_nick_y,
window->win_nick_x);
- //scrollok (window->win_chat, TRUE);
gui_redraw_window_chat (window);
}
sprintf (format, "%%-%ds", max_length);
@@ -1089,6 +1089,8 @@ gui_switch_to_window (t_gui_window *window)
}
}
+ gui_calculate_pos_size (window);
+
/* first time creation for windows */
if (!another_window)
{
@@ -1099,7 +1101,6 @@ gui_switch_to_window (t_gui_window *window)
window->win_chat_width,
window->win_chat_y,
window->win_chat_x);
- //scrollok (window->win_chat, TRUE);
if (CHANNEL(window))
window->win_nick = newwin (window->win_nick_height,
window->win_nick_width,
@@ -1123,7 +1124,6 @@ gui_switch_to_window (t_gui_window *window)
window->win_chat_width,
window->win_chat_y,
window->win_chat_x);
- //scrollok (window->win_chat, TRUE);
window->win_nick = newwin (window->win_nick_height,
window->win_nick_width,
window->win_nick_y,
@@ -1139,7 +1139,6 @@ gui_switch_to_window (t_gui_window *window)
window->win_chat_width,
window->win_chat_y,
window->win_chat_x);
- //scrollok (window->win_chat, TRUE);
}
}