mirror of
https://github.com/irssi/irssi.git
synced 2026-08-10 20:33:46 +02:00
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:
parent
de3bae13c5
commit
1718083cf6
2 changed files with 27 additions and 6 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue