diff options
author | Timo Sirainen <cras@irssi.org> | 2002-02-01 19:26:58 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2002-02-01 19:26:58 +0000 |
commit | f8221db7ca38a7ecca599c45dc70d70f1038b566 (patch) | |
tree | 9a0077ae9e7fd90d56c749280489200e4e6a8f8b /src/fe-text/mainwindows.c | |
parent | 9cc6acc9a2baa643e8a7e68176d6caa3ff8b60f4 (diff) | |
download | irssi-f8221db7ca38a7ecca599c45dc70d70f1038b566.zip |
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
Diffstat (limited to 'src/fe-text/mainwindows.c')
-rw-r--r-- | src/fe-text/mainwindows.c | 11 |
1 files changed, 11 insertions, 0 deletions
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; |