diff options
author | Karoly Lorentey <[email protected]> | 2005-12-13 19:03:29 +0000 |
---|---|---|
committer | Karoly Lorentey <[email protected]> | 2005-12-13 19:03:29 +0000 |
commit | bedeffcffb4ad37ccfc3ba13436583d4f60f8b31 (patch) | |
tree | 1f82487d4a9d1ad503aa0fd3fb58e52bf94278f6 | |
parent | f369f10bdce359e960c3921f8e421d965a9038eb (diff) |
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: [email protected]/emacs--multi-tty--0--patch-452
-rw-r--r-- | README.multi-tty | 6 | ||||
-rw-r--r-- | src/dispnew.c | 4 |
2 files changed, 7 insertions, 3 deletions
diff --git a/README.multi-tty b/README.multi-tty index 7a9ed1fdad..5deb706c3c 100644 --- a/README.multi-tty +++ b/README.multi-tty @@ -35,6 +35,7 @@ Bernard Adrian <[email protected]> ARISAWA Akihiro <[email protected]> Vincent Bernat <[email protected]> Han Boetes <[email protected]> +Francisco Borges <[email protected]> Damien Cassou <[email protected]> Robert J. Chassell <[email protected]> Romain Francoise <[email protected]> @@ -52,8 +53,8 @@ Gergely Nagy <[email protected]> Dan Nicolaescu <[email protected]> Kalle Olavi Niemitalo <[email protected]> Mark Plaksin <[email protected]> -Francisco Borges <[email protected]> Frank Ruell <[email protected]> +Tom Schutzer-Weissmann <[email protected]> Dan Waber <[email protected]> and many others. @@ -392,6 +393,9 @@ is probably not very interesting for anyone else.) 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. diff --git a/src/dispnew.c b/src/dispnew.c index 095400eb70..0de517c529 100644 --- a/src/dispnew.c +++ b/src/dispnew.c @@ -6050,7 +6050,7 @@ window_change_signal (signalnum) /* If we don't have an argument, */ #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 @@ window_change_signal (signalnum) /* If we don't have an argument, */ get_tty_size (fileno (tty->input), &width, &height); - { + if (width > 5 && height > 2) { Lisp_Object tail, frame; FOR_EACH_FRAME (tail, frame) |