changeset 34210:2fe560117122

(x_destroy_window): Reset the frame's X window after destroying it.
author Gerd Moellmann <gerd@gnu.org>
date Tue, 05 Dec 2000 14:32:18 +0000
parents 695d6e904236
children 031eccc650dc
files src/xterm.c
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/xterm.c	Tue Dec 05 14:02:27 2000 +0000
+++ b/src/xterm.c	Tue Dec 05 14:32:18 2000 +0000
@@ -12413,7 +12413,11 @@
       if (FRAME_XIC (f))
 	free_frame_xic (f);
 #endif
-      XDestroyWindow (FRAME_X_DISPLAY (f), f->output_data.x->window_desc);
+      if (FRAME_X_WINDOW (f))
+	{
+	  XDestroyWindow (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f));
+	  FRAME_X_WINDOW (f) = 0;
+	}
 #ifdef USE_X_TOOLKIT
       if (f->output_data.x->widget)
 	XtDestroyWidget (f->output_data.x->widget);