From xemacs-m  Sun May 11 12:41:05 1997
Received: from crystal.WonderWorks.COM (crystal.WonderWorks.com [192.203.206.1])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id MAA29986
	for <xemacs-beta@xemacs.org>; Sun, 11 May 1997 12:41:03 -0500 (CDT)
Received: by crystal.WonderWorks.COM 
	id QQcpcg21722; Sun, 11 May 1997 13:41:00 -0400 (EDT)
Date: Sun, 11 May 1997 13:41:00 -0400 (EDT)
Message-Id: <QQcpcg21722.199705111741@crystal.WonderWorks.COM>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
From: Kyle Jones <kyle_jones@wonderworks.com>
To: xemacs-beta@xemacs.org
Subject: [PATCH] 20.2-b6: fix for minibuffer size reset
X-Mailer: VM 6.31 under 20.2 XEmacs Lucid (beta6)
X-Face: /cA45WHG7jWq>(O3&Z57Y<"WsX5ddc,4c#w0F*zrV#=M
        0@~@,s;b,aMtR5Sqs"+nU.z^CSFQ9t`z2>W,S,]:[+2^
        Nbf6v4g>!&,7R4Ot4Wg{&tm=WX7P["9%a)_da48-^tGy
        ,qz]Z,Zz\{E.,]'EO+F)@$KtF&V

If you resize the minibuffer in a normal frame to have more than
one line, XEmacs will randomly revert it back to one line.

Here is a fix.  Not for 20.2.

Sun May 11 13:38:46 1997  Kyle Jones  <kyle@crystal.WonderWorks.COM>

	* src/frame.c (change_frame_size_1):
	  return without doing anything if the frame has benn
	  initialized and the new frame size is same as the
	  current frame size.


--- 1.1	1997/05/11 17:20:38
+++ src/frame.c	1997/05/11 17:20:43
@@ -2594,6 +2594,15 @@
     abort ();
 
   XSETFRAME (frame, f);
+
+  /*
+   * If the frame has been initialized and the new height and width
+   * are the same as the current height and width, then just return.
+   */
+  if (f->init_finished &&
+      newheight == FRAME_HEIGHT (f) && newwidth == FRAME_WIDTH (f))
+    return;
+
   default_face_height_and_width (frame, &font_height, &font_width);
 
   /* This size-change overrides any pending one for this frame.  */

