comparison src/window.c @ 26761:c15c2756ec0f

(delete_window): Block input for the time window matrices are being changed.
author Gerd Moellmann <gerd@gnu.org>
date Tue, 07 Dec 1999 20:18:15 +0000
parents af8d605cbcf1
children 5281eb29603f
comparison
equal deleted inserted replaced
26760:c55415d59073 26761:c15c2756ec0f
1051 unshow_buffer (p); 1051 unshow_buffer (p);
1052 unchain_marker (p->pointm); 1052 unchain_marker (p->pointm);
1053 unchain_marker (p->start); 1053 unchain_marker (p->start);
1054 } 1054 }
1055 1055
1056 /* Free window glyph matrices. 1056 /* Free window glyph matrices. It is sure that they are allocated
1057 It is sure that they are allocated again when ADJUST_GLYPHS 1057 again when ADJUST_GLYPHS is called. Block input so that expose
1058 is called. */ 1058 events and other events that access glyph matrices are not
1059 processed while we are changing them. */
1060 BLOCK_INPUT;
1059 free_window_matrices (XWINDOW (FRAME_ROOT_WINDOW (frame))); 1061 free_window_matrices (XWINDOW (FRAME_ROOT_WINDOW (frame)));
1060 1062
1061 tem = p->next; 1063 tem = p->next;
1062 if (!NILP (tem)) 1064 if (!NILP (tem))
1063 XWINDOW (tem)->prev = p->prev; 1065 XWINDOW (tem)->prev = p->prev;
1112 /* Mark this window as deleted. */ 1114 /* Mark this window as deleted. */
1113 p->buffer = p->hchild = p->vchild = Qnil; 1115 p->buffer = p->hchild = p->vchild = Qnil;
1114 1116
1115 /* Adjust glyph matrices. */ 1117 /* Adjust glyph matrices. */
1116 adjust_glyphs (frame); 1118 adjust_glyphs (frame);
1119 UNBLOCK_INPUT;
1117 } 1120 }
1118 1121
1119 1122
1120 extern Lisp_Object next_frame (), prev_frame (); 1123 extern Lisp_Object next_frame (), prev_frame ();
1121 1124