1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-18 10:16:51 +00:00

(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.
This commit is contained in:
Gerd Moellmann 2001-01-15 15:29:54 +00:00
parent bccee4f282
commit ae24cb3bef
2 changed files with 9 additions and 2 deletions

View File

@ -1,5 +1,9 @@
2001-01-15 Gerd Moellmann <gerd@gnu.org>
* xterm.c (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.
* dispnew.c (save_or_restore_current_matrices): Function removed.
(save_current_matrix, restore_current_matrix): New functions.
(adjust_frame_glyphs_for_frame_redisplay): Use them to save and
@ -13,7 +17,7 @@
* xdisp.c (insert_left_trunc_glyphs): Overwrite padding glyphs by
truncation glyphs.
(display_line): Optimize for wide characters.
(display_string): Don't try to display a multi-column charaters
(display_string): Don't try to display a multi-column characters
partially. On ttys, produce more than one truncation glyph for
multi-column characters that don't fit on the line.

View File

@ -11288,7 +11288,10 @@ x_connection_closed (dpy, error_message)
in OpenWindows. I don't know how to cicumvent it here. */
#ifdef USE_X_TOOLKIT
XtCloseDisplay (dpy);
/* If DPYINFO is null, this means we didn't open the display
in the first place, so don't try to close it. */
if (dpyinfo)
XtCloseDisplay (dpy);
#endif
/* Indicate that this display is dead. */