From 6415f506ded8ae523bacdd6c2f3d110257c5b8fc Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Wed, 23 Aug 2000 02:06:38 +0000 Subject: Call idlok() for all new subwindows. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@622 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/fe-text/mainwindows.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/fe-text/mainwindows.c b/src/fe-text/mainwindows.c index c1164054..691db0bb 100644 --- a/src/fe-text/mainwindows.c +++ b/src/fe-text/mainwindows.c @@ -57,6 +57,12 @@ static MAIN_WINDOW_REC *find_window_with_room(void) return biggest_rec; } +static void create_curses_window(MAIN_WINDOW_REC *window) +{ + window->curses_win = newwin(window->lines, COLS, window->first_line, 0); + idlok(window->curses_win, 1); +} + static void mainwindow_resize(MAIN_WINDOW_REC *window, int ychange, int xchange) { GSList *tmp; @@ -69,7 +75,7 @@ static void mainwindow_resize(MAIN_WINDOW_REC *window, int ychange, int xchange) mvwin(window->curses_win, window->first_line, 0); #else delwin(window->curses_win); - window->curses_win = newwin(window->lines, COLS, window->first_line, 0); + create_curses_window(window); #endif for (tmp = windows; tmp != NULL; tmp = tmp->next) { @@ -91,7 +97,7 @@ void mainwindows_recreate(void) for (tmp = mainwindows; tmp != NULL; tmp = tmp->next) { MAIN_WINDOW_REC *rec = tmp->data; - rec->curses_win = newwin(rec->lines, COLS, rec->first_line, 0); + create_curses_window(rec); gui_window_redraw(rec->active); } } -- cgit debian/1.2.3+git2.25.1-1-2-gaceb0