Ignore window size changes in resize check

This commit is contained in:
Pasi Kallinen 2015-12-07 18:10:11 +02:00
parent 46aa412b7b
commit 82176bc7e7
1 changed files with 2 additions and 0 deletions

View File

@ -71,11 +71,13 @@ term_resize_check()
{
if ((COLS == dgl_local_COLS) && (LINES == dgl_local_LINES) && !curses_resize) return;
signal(SIGWINCH, SIG_IGN);
endwin();
initcurses();
dgl_local_COLS = COLS;
dgl_local_LINES = LINES;
curses_resize = 0;
signal(SIGWINCH, sigwinch_func);
}
int