changeset 1680:ea9f3949f153

* frame.c (Fdelete_frame): Delete all the windows in the frame's window tree, using delete_all_subwindows. * window.c (delete_all_subwindows): Don't make this static anymore.
author Jim Blandy <jimb@redhat.com>
date Sat, 12 Dec 1992 15:34:44 +0000
parents cd48b2c1a7a4
children a03b87a92614
files src/frame.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/frame.c	Sat Dec 12 15:32:51 1992 +0000
+++ b/src/frame.c	Sat Dec 12 15:34:44 1992 +0000
@@ -616,6 +616,11 @@
       minibuf_window = selected_frame->minibuffer_window;
     }
 
+  /* Mark all the windows that used to be on FRAME as deleted, and then
+     remove the reference to them.  */
+  delete_all_subwindows (XWINDOW (f->root_window));
+  f->root_window = Qnil;
+
   Vframe_list = Fdelq (frame, Vframe_list);
   f->visible = 0;
   displ = f->display;