Mercurial > emacs
changeset 35309:cb7e1d7b6b67
(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.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Mon, 15 Jan 2001 15:28:57 +0000 |
parents | ab34c80276c0 |
children | d1e16119cf2c |
files | src/xterm.c |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/xterm.c Mon Jan 15 13:46:41 2001 +0000 +++ b/src/xterm.c Mon Jan 15 15:28:57 2001 +0000 @@ -11288,7 +11288,10 @@ 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. */