aboutsummaryrefslogtreecommitdiffstats
path: root/src/widget.c
diff options
context:
space:
mode:
authorRichard M. Stallman1994-04-10 05:59:24 +0000
committerRichard M. Stallman1994-04-10 05:59:24 +0000
commit6ae9a3f2f257e36cf91cf76b8b621059de42e607 (patch)
tree6259f5024e9a129640fe2f6c8dbed88b19936cc2 /src/widget.c
parent166a4263105e69daaf8127800c7e3e1dea026091 (diff)
downloademacs-6ae9a3f2f257e36cf91cf76b8b621059de42e607.tar.gz
emacs-6ae9a3f2f257e36cf91cf76b8b621059de42e607.zip
(EmacsFrameSetCharSize): Do not attempt to preserve the window position.
Diffstat (limited to 'src/widget.c')
-rw-r--r--src/widget.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/src/widget.c b/src/widget.c
index de2ef27fc49..df146b681cb 100644
--- a/src/widget.c
+++ b/src/widget.c
@@ -433,7 +433,7 @@ set_frame_size (ew)
433 ew->core.width = pixel_width; 433 ew->core.width = pixel_width;
434 ew->core.height = pixel_height; 434 ew->core.height = pixel_height;
435 435
436#if 0 /* We don't need this also. */ 436#if 0 /* xfns.c takes care of this now. */
437 /* If a position was specified, assign it to the shell widget. 437 /* If a position was specified, assign it to the shell widget.
438 (Else WM won't do anything with it.) 438 (Else WM won't do anything with it.)
439 */ 439 */
@@ -881,9 +881,6 @@ EmacsFrameSetCharSize (widget, columns, rows)
881 if (columns < 3) columns = 3; /* no way buddy */ 881 if (columns < 3) columns = 3; /* no way buddy */
882 if (rows < 3) rows = 3; 882 if (rows < 3) rows = 3;
883 883
884 f->display.x->left_pos = f->display.x->widget->core.x;
885 f->display.x->top_pos = f->display.x->widget->core.y;
886
887 check_frame_size (f, &rows, &columns); 884 check_frame_size (f, &rows, &columns);
888 f->display.x->vertical_scroll_bar_extra 885 f->display.x->vertical_scroll_bar_extra
889 = (FRAME_HAS_VERTICAL_SCROLL_BARS (f) 886 = (FRAME_HAS_VERTICAL_SCROLL_BARS (f)
@@ -916,11 +913,4 @@ EmacsFrameSetCharSize (widget, columns, rows)
916 for, then the event won't cause the screen to become garbaged, so 913 for, then the event won't cause the screen to become garbaged, so
917 we have to make sure to do it here. */ 914 we have to make sure to do it here. */
918 SET_FRAME_GARBAGED (f); 915 SET_FRAME_GARBAGED (f);
919
920 /* Coordinates of the toplevel widget seem to have been lost.
921 So set it to the rignt values. */
922 ac = 0;
923 XtSetArg (al[ac], XtNx, f->display.x->left_pos); ac++;
924 XtSetArg (al[ac], XtNy, f->display.x->top_pos); ac++;
925 XtSetValues (f->display.x->widget, al, ac);
926} 916}