changeset 11988:a1ce6f699967

(x_set_offset): Distinguish CHANGE_GRAVITY < 0 case.
author Karl Heuer <kwzh@gnu.org>
date Mon, 29 May 1995 07:27:09 +0000
parents 9619c1121b43
children 0deb4505c0f0
files src/xterm.c
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/xterm.c	Mon May 29 07:16:27 1995 +0000
+++ b/src/xterm.c	Mon May 29 07:27:09 1995 +0000
@@ -4810,7 +4810,8 @@
 /* CHANGE_GRAVITY is 1 when calling from Fset_frame_position,
    to really change the position, and 0 when calling from
    x_make_frame_visible (in that case, XOFF and YOFF are the current
-   position values).  */
+   position values).  It is -1 when calling from x_set_frame_parameters,
+   which means, do adjust for borders but don't change the gravity.  */
 
 x_set_offset (f, xoff, yoff, change_gravity)
      struct frame *f;
@@ -4819,7 +4820,7 @@
 {
   int modified_top, modified_left;
 
-  if (change_gravity)
+  if (change_gravity > 0)
     {
       f->display.x->top_pos = yoff;
       f->display.x->left_pos = xoff;
@@ -4839,7 +4840,7 @@
      when the frame is already visible, but experiment says we do.  */
   modified_left = f->display.x->left_pos;
   modified_top = f->display.x->top_pos;
-  if (change_gravity)
+  if (change_gravity != 0)
     {
       modified_left += f->display.x->border_width;
       modified_top += f->display.x->border_width;