changeset 83412:573105015a96

Work around Emacs crash on Konsole detach. (Tom Schutzer-Weissmann) * src/dispnew.c (window_change_signal): Don't believe width/height values that are impossibly small. git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-452
author Karoly Lorentey <lorentey@elte.hu>
date Tue, 13 Dec 2005 19:03:29 +0000
parents c35ff18ca977
children e26e2265dcc6
files README.multi-tty src/dispnew.c
diffstat 2 files changed, 7 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/README.multi-tty	Mon Dec 12 03:32:16 2005 +0000
+++ b/README.multi-tty	Tue Dec 13 19:03:29 2005 +0000
@@ -35,6 +35,7 @@
 ARISAWA Akihiro <ari@mbf.ocn.ne.jp>
 Vincent Bernat <bernat@luffy.cx>
 Han Boetes <han@mijncomputer.nl>
+Francisco Borges <borges@let.rug.nl>
 Damien Cassou <damien.cassou@laposte.net>
 Robert J. Chassell <bob@rattlesnake.com>
 Romain Francoise <romain@orebokech.com>
@@ -52,8 +53,8 @@
 Dan Nicolaescu <dann@ics.uci.edu>
 Kalle Olavi Niemitalo <kon@iki.fi>
 Mark Plaksin <happy@mcplaksin.org>
-Francisco Borges <borges@let.rug.nl>
 Frank Ruell <stoerte@dreamwarrior.net>
+Tom Schutzer-Weissmann <trmsw@yahoo.co.uk>
 Dan Waber <dwaber@logolalia.com>
 and many others.
 
@@ -392,6 +393,9 @@
 THINGS TO DO
 ------------
 
+** Emacs crashes when a tty frame is resized so that there is no space
+   for all its windows.  (Tom Schutzer-Weissmann)
+
 ** Report GTK multi-display problems to GTK maintainers.  For extra
    credit, fix them.
 
--- a/src/dispnew.c	Mon Dec 12 03:32:16 2005 +0000
+++ b/src/dispnew.c	Tue Dec 13 19:03:29 2005 +0000
@@ -6050,7 +6050,7 @@
 #ifndef USE_CRT_DLL
   extern int errno;
 #endif
-  int old_errno = errno;
+  int old_errno = errno;x
 
   struct tty_display_info *tty;
 
@@ -6068,7 +6068,7 @@
 
     get_tty_size (fileno (tty->input), &width, &height);
     
-    {
+    if (width > 5 && height > 2) {
       Lisp_Object tail, frame;
       
       FOR_EACH_FRAME (tail, frame)