From 093dd95bf5cac843a9b3f019052e90061737d5c8 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Mon, 15 Apr 1996 15:48:51 +0000 Subject: [PATCH] (x_set_frame_parameters): Get height and width from FRAME_NEW_WIDTH and FRAME_NEW_HEIGHT if nonzero. --- src/xfns.c | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/xfns.c b/src/xfns.c index 344fb921a5b..36d164a45c8 100644 --- a/src/xfns.c +++ b/src/xfns.c @@ -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 -- 2.39.2