changeset 15022:3f5642bda41c

(x_set_frame_parameters): Get height and width from FRAME_NEW_WIDTH and FRAME_NEW_HEIGHT if nonzero.
author Richard M. Stallman <rms@gnu.org>
date Mon, 15 Apr 1996 15:48:51 +0000
parents af36df262fc5
children 6f4dd53a62d4
files src/xfns.c
diffstat 1 files changed, 12 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/xfns.c	Sun Apr 14 17:45:31 1996 +0000
+++ b/src/xfns.c	Mon Apr 15 15:48:51 1996 +0000
@@ -831,9 +831,19 @@
 
   /* 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