diff options
author | Richard M. Stallman <rms@gnu.org> | 1993-06-03 06:18:18 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1993-06-03 06:18:18 +0000 |
commit | 9d45b712fa2235ce0dad506438df5f7fd0f41cd8 (patch) | |
tree | 94cf6c08a2d2da82d487d6731deaddaa3ff217c3 /src/dispnew.c | |
parent | 4cc3b6340f35a9f568d90cd104f59ef62c6ad2ea (diff) | |
download | emacs-9d45b712fa2235ce0dad506438df5f7fd0f41cd8.tar.gz |
(do_pending_window_change): No need to clear
FRAME_NEW_HEIGHT/WIDTH. Do test width != 0.
Diffstat (limited to 'src/dispnew.c')
-rw-r--r-- | src/dispnew.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/dispnew.c b/src/dispnew.c index a5f35362f1c..9f57065c2e4 100644 --- a/src/dispnew.c +++ b/src/dispnew.c @@ -1657,11 +1657,8 @@ do_pending_window_change () int height = FRAME_NEW_HEIGHT (f); int width = FRAME_NEW_WIDTH (f); - - FRAME_NEW_HEIGHT (f) = 0; - FRAME_NEW_WIDTH (f) = 0; - if (height != 0) + if (height != 0 || width != 0) change_frame_size (f, height, width, 0, 0); } } @@ -1693,7 +1690,7 @@ change_frame_size (frame, newheight, newwidth, pretend, delay) FRAME_NEW_HEIGHT (frame) = 0; FRAME_NEW_WIDTH (frame) = 0; - /* If an arguments is zero, set it to the current value. */ + /* If an argument is zero, set it to the current value. */ newheight || (newheight = FRAME_HEIGHT (frame)); newwidth || (newwidth = FRAME_WIDTH (frame)); |