diff options
| author | Karoly Lorentey | 2004-01-26 07:17:34 +0000 |
|---|---|---|
| committer | Karoly Lorentey | 2004-01-26 07:17:34 +0000 |
| commit | bacb6689058e76f47a6f723cd04fa8679944998b (patch) | |
| tree | 279228368014d1fbb7555cc20470906adb3cefcb /src | |
| parent | c3b4957fff207e1b7c92ddc8a1b0401892574fce (diff) | |
| download | emacs-bacb6689058e76f47a6f723cd04fa8679944998b.tar.gz emacs-bacb6689058e76f47a6f723cd04fa8679944998b.zip | |
Don't exit Emacs when the X display is closed during a tty-X combo session.
src/xterm.c (x_delete_display): Fix semantic typo.
(x_connection_closed): When deciding whether or not to shut down
Emacs, check for remaining elements in display_list, not
x_display_list.
git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-68
Diffstat (limited to 'src')
| -rw-r--r-- | src/xterm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/xterm.c b/src/xterm.c index 8832991156d..ffbe4ded419 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -7866,7 +7866,7 @@ x_connection_closed (dpy, error_message) | |||
| 7866 | 7866 | ||
| 7867 | x_uncatch_errors (dpy, count); | 7867 | x_uncatch_errors (dpy, count); |
| 7868 | 7868 | ||
| 7869 | if (x_display_list == 0) | 7869 | if (display_list == 0) |
| 7870 | { | 7870 | { |
| 7871 | fprintf (stderr, "%s\n", error_msg); | 7871 | fprintf (stderr, "%s\n", error_msg); |
| 7872 | shut_down_emacs (0, 0, Qnil); | 7872 | shut_down_emacs (0, 0, Qnil); |
| @@ -10748,7 +10748,7 @@ x_delete_display (dpyinfo) | |||
| 10748 | /* Delete the generic struct display for this X display. */ | 10748 | /* Delete the generic struct display for this X display. */ |
| 10749 | struct display *d; | 10749 | struct display *d; |
| 10750 | for (d = display_list; d; d = d->next_display) | 10750 | for (d = display_list; d; d = d->next_display) |
| 10751 | if (d->type == output_x_window && d->display_info.x != dpyinfo) | 10751 | if (d->type == output_x_window && d->display_info.x == dpyinfo) |
| 10752 | { | 10752 | { |
| 10753 | delete_display (d); | 10753 | delete_display (d); |
| 10754 | break; | 10754 | break; |