aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Moellmann2001-01-15 15:29:54 +0000
committerGerd Moellmann2001-01-15 15:29:54 +0000
commitae24cb3befd9649b4ef8e8ad56db90408284f556 (patch)
tree23e747ca60c88c6105299d508d2cc765e72b211d
parentbccee4f282fc53c3cd181903e322b8d531bb0db4 (diff)
downloademacs-ae24cb3befd9649b4ef8e8ad56db90408284f556.tar.gz
emacs-ae24cb3befd9649b4ef8e8ad56db90408284f556.zip
(x_connection_closed) [USE_X_TOOLKIT]: If
x_display_info_for_display returns null, don't try to close the display; we didn't open it.
-rw-r--r--src/ChangeLog6
-rw-r--r--src/xterm.c5
2 files changed, 9 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 1bea2b42391..38a5dafd89d 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,9 @@
12001-01-15 Gerd Moellmann <gerd@gnu.org> 12001-01-15 Gerd Moellmann <gerd@gnu.org>
2 2
3 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: If
4 x_display_info_for_display returns null, don't try to close
5 the display; we didn't open it.
6
3 * dispnew.c (save_or_restore_current_matrices): Function removed. 7 * dispnew.c (save_or_restore_current_matrices): Function removed.
4 (save_current_matrix, restore_current_matrix): New functions. 8 (save_current_matrix, restore_current_matrix): New functions.
5 (adjust_frame_glyphs_for_frame_redisplay): Use them to save and 9 (adjust_frame_glyphs_for_frame_redisplay): Use them to save and
@@ -13,7 +17,7 @@
13 * xdisp.c (insert_left_trunc_glyphs): Overwrite padding glyphs by 17 * xdisp.c (insert_left_trunc_glyphs): Overwrite padding glyphs by
14 truncation glyphs. 18 truncation glyphs.
15 (display_line): Optimize for wide characters. 19 (display_line): Optimize for wide characters.
16 (display_string): Don't try to display a multi-column charaters 20 (display_string): Don't try to display a multi-column characters
17 partially. On ttys, produce more than one truncation glyph for 21 partially. On ttys, produce more than one truncation glyph for
18 multi-column characters that don't fit on the line. 22 multi-column characters that don't fit on the line.
19 23
diff --git a/src/xterm.c b/src/xterm.c
index fadeae0e057..0cd68a7f9e3 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -11288,7 +11288,10 @@ x_connection_closed (dpy, error_message)
11288 in OpenWindows. I don't know how to cicumvent it here. */ 11288 in OpenWindows. I don't know how to cicumvent it here. */
11289 11289
11290#ifdef USE_X_TOOLKIT 11290#ifdef USE_X_TOOLKIT
11291 XtCloseDisplay (dpy); 11291 /* If DPYINFO is null, this means we didn't open the display
11292 in the first place, so don't try to close it. */
11293 if (dpyinfo)
11294 XtCloseDisplay (dpy);
11292#endif 11295#endif
11293 11296
11294 /* Indicate that this display is dead. */ 11297 /* Indicate that this display is dead. */