Mercurial > emacs
comparison src/xterm.c @ 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 | 008aea836cbc |
children | 1f5511b1d5ea |
comparison
equal
deleted
inserted
replaced
35308:ab34c80276c0 | 35309:cb7e1d7b6b67 |
---|---|
11286 Closing the display is reported to lead to a bus error on | 11286 Closing the display is reported to lead to a bus error on |
11287 OpenWindows in certain situations. I suspect that is a bug | 11287 OpenWindows in certain situations. I suspect that is a bug |
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. */ |
11295 if (dpyinfo) | 11298 if (dpyinfo) |
11296 dpyinfo->display = 0; | 11299 dpyinfo->display = 0; |