Resizing terminal works now properly, also sends "terminal resized" signal

now.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1830 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2001-10-14 10:45:00 +00:00 committed by cras
commit 1718083cf6
2 changed files with 27 additions and 6 deletions

View file

@ -86,8 +86,10 @@ static void mainwindow_resize(MAIN_WINDOW_REC *window, int xdiff, int ydiff)
WINDOW_REC *rec = tmp->data;
if (rec->gui_data != NULL &&
WINDOW_GUI(rec)->parent == window)
gui_window_resize(rec, window->width, window->height);
WINDOW_GUI(rec)->parent == window) {
gui_window_resize(rec, window->width,
MAIN_WINDOW_TEXT_HEIGHT(window));
}
}
textbuffer_view_set_window(WINDOW_GUI(window->active)->view,
@ -468,6 +470,8 @@ void mainwindows_resize(int width, int height)
mainwindows_resize_bigger(xdiff, ydiff);
else if (xdiff != 0)
mainwindows_resize_horiz(xdiff);
signal_emit("terminal resized", 0);
screen_refresh_thaw();
irssi_redraw();