mirror of
https://github.com/irssi/irssi.git
synced 2024-10-27 05:20:20 -04:00
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
This commit is contained in:
parent
9cc6acc9a2
commit
f8221db7ca
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user