Commit 093dd95b authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(x_set_frame_parameters): Get height and width from

FRAME_NEW_WIDTH and FRAME_NEW_HEIGHT if nonzero.
parent 0a65b032
......@@ -831,9 +831,19 @@ x_set_frame_parameters (f, alist)
/* Don't die if just one of these was set. */
if (EQ (width, Qunbound))
XSETINT (width, FRAME_WIDTH (f));
{
if (FRAME_NEW_WIDTH (f))
XSETINT (width, FRAME_NEW_WIDTH (f));
else
XSETINT (width, FRAME_WIDTH (f));
}
if (EQ (height, Qunbound))
XSETINT (height, FRAME_HEIGHT (f));
{
if (FRAME_NEW_HEIGHT (f))
XSETINT (height, FRAME_NEW_HEIGHT (f));
else
XSETINT (height, FRAME_HEIGHT (f));
}
/* Don't set these parameters unless they've been explicitly
specified. The window might be mapped or resized while we're in
......
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