diff options
| author | Richard M. Stallman | 1996-06-10 21:13:26 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1996-06-10 21:13:26 +0000 |
| commit | 8a376b3b35745c0f6eb68e2f96f69f5e06cbcd95 (patch) | |
| tree | 357b6fb28bce7f9f2f5ffdf3d753465db2e5e470 | |
| parent | 93e54836fdd311d4bacdbbac946e7660726306e6 (diff) | |
| download | emacs-8a376b3b35745c0f6eb68e2f96f69f5e06cbcd95.tar.gz emacs-8a376b3b35745c0f6eb68e2f96f69f5e06cbcd95.zip | |
(change_frame_size, remake_frame_glyphs): Use FRAME_WINDOW_P.
| -rw-r--r-- | src/dispnew.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/dispnew.c b/src/dispnew.c index 9e9c0ad625d..c227e1ad16e 100644 --- a/src/dispnew.c +++ b/src/dispnew.c | |||
| @@ -400,8 +400,7 @@ remake_frame_glyphs (frame) | |||
| 400 | FRAME_CURRENT_GLYPHS (frame) = make_frame_glyphs (frame, 0); | 400 | FRAME_CURRENT_GLYPHS (frame) = make_frame_glyphs (frame, 0); |
| 401 | FRAME_DESIRED_GLYPHS (frame) = make_frame_glyphs (frame, 0); | 401 | FRAME_DESIRED_GLYPHS (frame) = make_frame_glyphs (frame, 0); |
| 402 | FRAME_TEMP_GLYPHS (frame) = make_frame_glyphs (frame, 1); | 402 | FRAME_TEMP_GLYPHS (frame) = make_frame_glyphs (frame, 1); |
| 403 | if (! FRAME_TERMCAP_P (frame) && ! FRAME_MSDOS_P (frame) | 403 | if (FRAME_WINDOW_P (frame) || frame == selected_frame) |
| 404 | || frame == selected_frame) | ||
| 405 | SET_FRAME_GARBAGED (frame); | 404 | SET_FRAME_GARBAGED (frame); |
| 406 | } | 405 | } |
| 407 | 406 | ||
| @@ -2105,12 +2104,12 @@ change_frame_size (f, newheight, newwidth, pretend, delay) | |||
| 2105 | int newheight, newwidth, pretend; | 2104 | int newheight, newwidth, pretend; |
| 2106 | { | 2105 | { |
| 2107 | Lisp_Object tail, frame; | 2106 | Lisp_Object tail, frame; |
| 2108 | if (FRAME_TERMCAP_P (f) || FRAME_MSDOS_P (f)) | 2107 | if (! FRAME_WINDOW_P (f)) |
| 2109 | { | 2108 | { |
| 2110 | /* When using termcap, or on MS-DOS, all frames use | 2109 | /* When using termcap, or on MS-DOS, all frames use |
| 2111 | the same screen, so a change in size affects all frames. */ | 2110 | the same screen, so a change in size affects all frames. */ |
| 2112 | FOR_EACH_FRAME (tail, frame) | 2111 | FOR_EACH_FRAME (tail, frame) |
| 2113 | if (FRAME_TERMCAP_P (XFRAME (frame)) || FRAME_MSDOS_P (XFRAME (frame))) | 2112 | if (! FRAME_WINDOW_P (XFRAME (frame))) |
| 2114 | change_frame_size_1 (XFRAME (frame), newheight, newwidth, | 2113 | change_frame_size_1 (XFRAME (frame), newheight, newwidth, |
| 2115 | pretend, delay); | 2114 | pretend, delay); |
| 2116 | } | 2115 | } |