diff options
| author | Karl Heuer | 1995-05-24 04:54:16 +0000 |
|---|---|---|
| committer | Karl Heuer | 1995-05-24 04:54:16 +0000 |
| commit | 07a63816030b4a5b76a07990fe2a2ec711030009 (patch) | |
| tree | db5335e1ccbea7beb6ef6e56fb67ed767521461f /src | |
| parent | ab6c5d9371484719ad64977c3c8587dd5dccb32c (diff) | |
| download | emacs-07a63816030b4a5b76a07990fe2a2ec711030009.tar.gz emacs-07a63816030b4a5b76a07990fe2a2ec711030009.zip | |
(x_set_frame_parameters): Pass 1 as change_gravity
when calling x_set_offset.
(x_real_positions): Don't add border_width into win_x, win_y.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xfns.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/xfns.c b/src/xfns.c index df82d9ab2f6..e2b5a9f33f1 100644 --- a/src/xfns.c +++ b/src/xfns.c | |||
| @@ -886,7 +886,7 @@ x_set_frame_parameters (f, alist) | |||
| 886 | f->display.x->win_gravity = NorthWestGravity; | 886 | f->display.x->win_gravity = NorthWestGravity; |
| 887 | 887 | ||
| 888 | /* Actually set that position, and convert to absolute. */ | 888 | /* Actually set that position, and convert to absolute. */ |
| 889 | x_set_offset (f, leftpos, toppos, 0); | 889 | x_set_offset (f, leftpos, toppos, 1); |
| 890 | } | 890 | } |
| 891 | 891 | ||
| 892 | if ((!NILP (icon_left) || !NILP (icon_top)) | 892 | if ((!NILP (icon_left) || !NILP (icon_top)) |
| @@ -949,8 +949,10 @@ x_real_positions (f, xptr, yptr) | |||
| 949 | /* Child of win. */ | 949 | /* Child of win. */ |
| 950 | &child); | 950 | &child); |
| 951 | 951 | ||
| 952 | #if 0 /* The values seem to be right without this and wrong with. */ | ||
| 952 | win_x += f->display.x->border_width; | 953 | win_x += f->display.x->border_width; |
| 953 | win_y += f->display.x->border_width; | 954 | win_y += f->display.x->border_width; |
| 955 | #endif | ||
| 954 | } | 956 | } |
| 955 | 957 | ||
| 956 | /* It is possible for the window returned by the XQueryNotify | 958 | /* It is possible for the window returned by the XQueryNotify |