]> skyeroc.xyz Git - dgamelaunch/commitdiff
Ignore window size changes in resize check
authorPasi Kallinen <paxed@alt.org>
Mon, 7 Dec 2015 16:10:11 +0000 (18:10 +0200)
committerPasi Kallinen <paxed@alt.org>
Mon, 7 Dec 2015 16:10:11 +0000 (18:10 +0200)
dgl-common.c

index e5c80bc445f3c33b8883123cede9d9faab407ab6..0cf795998ebbd04ecce7a0d13347b7201f256cca 100644 (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