diff options
| author | Gerd Moellmann | 1999-12-07 20:20:30 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 1999-12-07 20:20:30 +0000 |
| commit | 05e71564d829d466aa41cd309b4db2e14e058528 (patch) | |
| tree | ab62fd4a5adfe149ab41a6cda2182286426b2eda /src/window.c | |
| parent | e77049d4869db98239251b7fcec27a821c94bbd6 (diff) | |
| download | emacs-05e71564d829d466aa41cd309b4db2e14e058528.tar.gz emacs-05e71564d829d466aa41cd309b4db2e14e058528.zip | |
(delete_window): Block input for the time window
matrices are being changed.
Diffstat (limited to 'src/window.c')
| -rw-r--r-- | src/window.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/window.c b/src/window.c index dc01b2faedf..0d7cc27b39d 100644 --- a/src/window.c +++ b/src/window.c | |||
| @@ -1053,9 +1053,11 @@ delete_window (window) | |||
| 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; |
| @@ -1114,6 +1116,7 @@ delete_window (window) | |||
| 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 | ||