Skip to content

Commit

Permalink
Ignore window size changes in resize check
Browse files Browse the repository at this point in the history
  • Loading branch information
paxed committed Dec 7, 2015
1 parent 46aa412 commit 82176bc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dgl-common.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 82176bc

Please sign in to comment.