]> git.eshelyaron.com Git - emacs.git/commitdiff
(EmacsFrameSetCharSize): Once again preserve x and y pos,
authorRichard M. Stallman <rms@gnu.org>
Thu, 19 May 1994 23:36:01 +0000 (23:36 +0000)
committerRichard M. Stallman <rms@gnu.org>
Thu, 19 May 1994 23:36:01 +0000 (23:36 +0000)
but not the same way as before.

src/widget.c

index bc3845c1dd562bea77dca0a0e3ad758ad6fa9b81..194d23933ab9adb77e36f49b2e7a430e0928592b 100644 (file)
@@ -894,6 +894,9 @@ EmacsFrameSetCharSize (widget, columns, rows)
     {
       int hdelta = pixel_height - ew->core.height;
       int column_widget_height = f->display.x->column_widget->core.height;
+      int old_left = f->display.x->widget->core.x;
+      int old_top = f->display.x->widget->core.y;
+
       XawPanedSetRefigureMode (f->display.x->column_widget, False);
 
       ac = 0;
@@ -907,6 +910,10 @@ EmacsFrameSetCharSize (widget, columns, rows)
       XtSetValues (f->display.x->column_widget, al, ac);
 
       XawPanedSetRefigureMode (f->display.x->column_widget, True);
+
+      /* These seem to get clobbered.  I don't know why. - rms.  */
+      f->display.x->widget->core.x = old_left;
+      f->display.x->widget->core.y = old_top;
     }
 
   /* We've set {FRAME,PIXEL}_{WIDTH,HEIGHT} to the values we hope to