mcabber/src/main.c
changeset 1454 6b98dc22946d
parent 1448 844410b9b4cc
child 1497 35020a2ed115
--- a/mcabber/src/main.c	Wed Apr 02 22:31:23 2008 +0200
+++ b/mcabber/src/main.c	Thu Apr 03 21:20:56 2008 +0200
@@ -222,6 +222,10 @@
     mcabber_terminate("Killed by SIGTERM");
   } else if (signum == SIGINT) {
     mcabber_terminate("Killed by SIGINT");
+#ifdef USE_SIGWINCH
+  } else if (signum == SIGWINCH) {
+    ungetch(KEY_RESIZE);
+#endif
   } else {
     scr_LogPrint(LPRINT_LOGNORM, "Caught signal: %d", signum);
   }
@@ -376,6 +380,9 @@
   signal(SIGTERM, sig_handler);
   signal(SIGINT,  sig_handler);
   signal(SIGCHLD, sig_handler);
+#ifdef USE_SIGWINCH
+  signal(SIGWINCH, sig_handler);
+#endif
   signal(SIGPIPE, SIG_IGN);
 
   /* Parse command line options */