From f8221db7ca38a7ecca599c45dc70d70f1038b566 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Fri, 1 Feb 2002 19:26:58 +0000 Subject: When resizing terminal, width of all split windows weren't always updated properly. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2364 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/fe-text/mainwindows.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/fe-text/mainwindows.c') diff --git a/src/fe-text/mainwindows.c b/src/fe-text/mainwindows.c index 50f8b93b..7fcd9103 100644 --- a/src/fe-text/mainwindows.c +++ b/src/fe-text/mainwindows.c @@ -389,6 +389,8 @@ static void mainwindows_resize_smaller(int xdiff, int ydiff) space = MAIN_WINDOW_TEXT_HEIGHT(rec)-WINDOW_MIN_SIZE; if (space <= 0) { + mainwindow_resize(rec, xdiff, 0); + rec->first_line += ydiff; rec->last_line += ydiff; signal_emit("mainwindow moved", 1, rec); @@ -403,6 +405,14 @@ static void mainwindows_resize_smaller(int xdiff, int ydiff) mainwindow_resize(rec, xdiff, -space); } + + if (xdiff != 0) { + while (tmp != NULL) { + mainwindow_resize(tmp->data, xdiff, 0); + tmp = tmp->next; + } + } + g_slist_free(sorted); } @@ -418,6 +428,7 @@ static void mainwindows_resize_bigger(int xdiff, int ydiff) space = MAIN_WINDOW_TEXT_HEIGHT(rec)-WINDOW_MIN_SIZE; if (ydiff == 0 || (space >= 0 && tmp->next != NULL)) { + mainwindow_resize(rec, xdiff, 0); if (moved > 0) { rec->first_line += moved; rec->last_line += moved; -- cgit v1.2.3