updates
[silc.git] / apps / irssi / src / fe-text / screen.c
index 5378b5c9e48a7aa5004ea4408da5a7206ccda9cf..89a63613c7477d909639994fcbf9d9a210208279 100644 (file)
 static int scrx, scry;
 static int use_colors;
 static int freeze_refresh;
+static int resized;
 
 static int init_screen_int(void);
 static void deinit_screen_int(void);
 
 #ifdef SIGWINCH
-
 static void sig_winch(int p)
+{
+       resized = TRUE;
+}
+#endif
+
+void screen_check_resizes(void)
 {
 #if defined (TIOCGWINSZ) && defined (HAVE_CURSES_RESIZETERM)
        struct winsize ws;
@@ -73,8 +79,8 @@ static void sig_winch(int p)
 #endif
 
        mainwindows_resize(COLS, LINES);
+       resized = FALSE;
 }
-#endif
 
 static void read_signals(void)
 {