Mercurial > emacs
comparison src/dispnew.c @ 15065:270020829d09
Include blockinput.h.
(change_frame_size_1): Block input around the real work.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Tue, 23 Apr 1996 20:32:58 +0000 |
parents | 9938201005a3 |
children | a295c26b5d67 |
comparison
equal
deleted
inserted
replaced
15064:fb0f2804c34a | 15065:270020829d09 |
---|---|
38 #include "window.h" | 38 #include "window.h" |
39 #include "commands.h" | 39 #include "commands.h" |
40 #include "disptab.h" | 40 #include "disptab.h" |
41 #include "indent.h" | 41 #include "indent.h" |
42 #include "intervals.h" | 42 #include "intervals.h" |
43 #include "blockinput.h" | |
43 | 44 |
44 #include "systty.h" | 45 #include "systty.h" |
45 #include "syssignal.h" | 46 #include "syssignal.h" |
46 | 47 |
47 #ifdef HAVE_X_WINDOWS | 48 #ifdef HAVE_X_WINDOWS |
2127 FRAME_NEW_WIDTH (frame) = newwidth; | 2128 FRAME_NEW_WIDTH (frame) = newwidth; |
2128 delayed_size_change = 1; | 2129 delayed_size_change = 1; |
2129 return; | 2130 return; |
2130 } | 2131 } |
2131 | 2132 |
2133 BLOCK_INPUT; | |
2134 | |
2132 /* This size-change overrides any pending one for this frame. */ | 2135 /* This size-change overrides any pending one for this frame. */ |
2133 FRAME_NEW_HEIGHT (frame) = 0; | 2136 FRAME_NEW_HEIGHT (frame) = 0; |
2134 FRAME_NEW_WIDTH (frame) = 0; | 2137 FRAME_NEW_WIDTH (frame) = 0; |
2135 | 2138 |
2136 /* If an argument is zero, set it to the current value. */ | 2139 /* If an argument is zero, set it to the current value. */ |
2208 if (FRAME_CURSOR_Y (frame) >= FRAME_HEIGHT (frame)) | 2211 if (FRAME_CURSOR_Y (frame) >= FRAME_HEIGHT (frame)) |
2209 FRAME_CURSOR_Y (frame) = FRAME_HEIGHT (frame) - 1; | 2212 FRAME_CURSOR_Y (frame) = FRAME_HEIGHT (frame) - 1; |
2210 | 2213 |
2211 remake_frame_glyphs (frame); | 2214 remake_frame_glyphs (frame); |
2212 calculate_costs (frame); | 2215 calculate_costs (frame); |
2216 | |
2217 UNBLOCK_INPUT; | |
2213 } | 2218 } |
2214 | 2219 |
2215 DEFUN ("send-string-to-terminal", Fsend_string_to_terminal, | 2220 DEFUN ("send-string-to-terminal", Fsend_string_to_terminal, |
2216 Ssend_string_to_terminal, 1, 1, 0, | 2221 Ssend_string_to_terminal, 1, 1, 0, |
2217 "Send STRING to the terminal without alteration.\n\ | 2222 "Send STRING to the terminal without alteration.\n\ |