]> git.eshelyaron.com Git - emacs.git/commitdiff
(x_set_frame_parameters): Pass 1 as change_gravity
authorKarl Heuer <kwzh@gnu.org>
Wed, 24 May 1995 04:54:16 +0000 (04:54 +0000)
committerKarl Heuer <kwzh@gnu.org>
Wed, 24 May 1995 04:54:16 +0000 (04:54 +0000)
when calling x_set_offset.
(x_real_positions): Don't add border_width into win_x, win_y.

src/xfns.c

index df82d9ab2f694d6395731da614f3b0ecab607799..e2b5a9f33f1e5fcaa2b6404f98eb6d84f69e7182 100644 (file)
@@ -886,7 +886,7 @@ x_set_frame_parameters (f, alist)
        f->display.x->win_gravity = NorthWestGravity;
 
        /* Actually set that position, and convert to absolute.  */
-       x_set_offset (f, leftpos, toppos, 0);
+       x_set_offset (f, leftpos, toppos, 1);
       }
 
     if ((!NILP (icon_left) || !NILP (icon_top))
@@ -949,8 +949,10 @@ x_real_positions (f, xptr, yptr)
                                 /* Child of win.  */
                                 &child);
 
+#if 0  /* The values seem to be right without this and wrong with.  */
          win_x += f->display.x->border_width;
          win_y += f->display.x->border_width;
+#endif
        }
 
       /* It is possible for the window returned by the XQueryNotify