summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2000-08-23 02:06:38 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2000-08-23 02:06:38 +0000
commit6415f506ded8ae523bacdd6c2f3d110257c5b8fc (patch)
treec56f0a71873bedb1bf58145dd10ebd5c26032aa8
parent3f8c35db914d9819539e3014bb02c3806be5af00 (diff)
downloadirssi-6415f506ded8ae523bacdd6c2f3d110257c5b8fc.zip
Call idlok() for all new subwindows.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@622 dbcabf3a-b0e7-0310-adc4-f8d773084564
-rw-r--r--src/fe-text/mainwindows.c10
1 files 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);
}
}