Commit 08f7aa3e authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(do_pending_window_change): No need to clear

FRAME_NEW_HEIGHT/WIDTH.  Do test width != 0.
parent 2ec778d0
...@@ -1658,10 +1658,7 @@ do_pending_window_change () ...@@ -1658,10 +1658,7 @@ do_pending_window_change ()
int height = FRAME_NEW_HEIGHT (f); int height = FRAME_NEW_HEIGHT (f);
int width = FRAME_NEW_WIDTH (f); int width = FRAME_NEW_WIDTH (f);
FRAME_NEW_HEIGHT (f) = 0; if (height != 0 || width != 0)
FRAME_NEW_WIDTH (f) = 0;
if (height != 0)
change_frame_size (f, height, width, 0, 0); change_frame_size (f, height, width, 0, 0);
} }
} }
...@@ -1693,7 +1690,7 @@ change_frame_size (frame, newheight, newwidth, pretend, delay) ...@@ -1693,7 +1690,7 @@ change_frame_size (frame, newheight, newwidth, pretend, delay)
FRAME_NEW_HEIGHT (frame) = 0; FRAME_NEW_HEIGHT (frame) = 0;
FRAME_NEW_WIDTH (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)); newheight || (newheight = FRAME_HEIGHT (frame));
newwidth || (newwidth = FRAME_WIDTH (frame)); newwidth || (newwidth = FRAME_WIDTH (frame));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment