aboutsummaryrefslogtreecommitdiffstats
path: root/src/xterm.c
diff options
context:
space:
mode:
authorGerd Moellmann2001-01-15 15:29:54 +0000
committerGerd Moellmann2001-01-15 15:29:54 +0000
commitae24cb3befd9649b4ef8e8ad56db90408284f556 (patch)
tree23e747ca60c88c6105299d508d2cc765e72b211d /src/xterm.c
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.
Diffstat (limited to 'src/xterm.c')
-rw-r--r--src/xterm.c5
1 files changed, 4 insertions, 1 deletions
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. */