1
0
mirror of https://github.com/irssi/irssi.git synced 2024-11-03 04:27:19 -05:00

mainwindow_set_statusbar_lines() resized only active window - not all

windows in that main window.. This made screen mess up for example with
/RELOAD.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1844 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2001-10-15 20:18:34 +00:00 committed by cras
parent 16247b8c34
commit 980bd19808

View File

@ -71,17 +71,10 @@ static MAIN_WINDOW_REC *find_window_with_room(void)
return biggest_rec; return biggest_rec;
} }
static void mainwindow_resize(MAIN_WINDOW_REC *window, int xdiff, int ydiff) static void mainwindow_resize_windows(MAIN_WINDOW_REC *window)
{ {
GSList *tmp; GSList *tmp;
if (quitting || (xdiff == 0 && ydiff == 0))
return;
window->width += xdiff;
window->height = window->last_line-window->first_line+1;
mainwindow_set_screen_size(window);
for (tmp = windows; tmp != NULL; tmp = tmp->next) { for (tmp = windows; tmp != NULL; tmp = tmp->next) {
WINDOW_REC *rec = tmp->data; WINDOW_REC *rec = tmp->data;
@ -91,6 +84,17 @@ static void mainwindow_resize(MAIN_WINDOW_REC *window, int xdiff, int ydiff)
MAIN_WINDOW_TEXT_HEIGHT(window)); MAIN_WINDOW_TEXT_HEIGHT(window));
} }
} }
}
static void mainwindow_resize(MAIN_WINDOW_REC *window, int xdiff, int ydiff)
{
if (quitting || (xdiff == 0 && ydiff == 0))
return;
window->width += xdiff;
window->height = window->last_line-window->first_line+1;
mainwindow_set_screen_size(window);
mainwindow_resize_windows(window);
textbuffer_view_set_window(WINDOW_GUI(window->active)->view, textbuffer_view_set_window(WINDOW_GUI(window->active)->view,
window->screen_win); window->screen_win);
@ -532,8 +536,7 @@ int mainwindow_set_statusbar_lines(MAIN_WINDOW_REC *window,
if (top+bottom != 0) { if (top+bottom != 0) {
mainwindow_set_screen_size(window); mainwindow_set_screen_size(window);
gui_window_resize(window->active, window->width, mainwindow_resize_windows(window);
MAIN_WINDOW_TEXT_HEIGHT(window));
} }
return ret; return ret;