diff options
| author | Jan Djärv | 2003-09-19 14:45:21 +0000 |
|---|---|---|
| committer | Jan Djärv | 2003-09-19 14:45:21 +0000 |
| commit | 8f5b9e349e4fcfa8d3a3a9538cb30cbedd9a2140 (patch) | |
| tree | a18bc4841fb2f9ddfdfee7baecee24c51e4038a2 | |
| parent | b0f23edf1c3c7482847e07ec82ff76114d85edc0 (diff) | |
| download | emacs-8f5b9e349e4fcfa8d3a3a9538cb30cbedd9a2140.tar.gz emacs-8f5b9e349e4fcfa8d3a3a9538cb30cbedd9a2140.zip | |
* xterm.c (x_set_offset): Take window manager decorations
into account.
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/xterm.c | 5 |
2 files changed, 9 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 00a82cc1407..a3116af3f89 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2003-09-19 Jan Dj,Ad(Brv <jan.h.d@swipnet.se> | ||
| 2 | |||
| 3 | * xterm.c (x_set_offset): Take window manager decorations | ||
| 4 | into account. | ||
| 5 | |||
| 1 | 2003-09-19 Richard M. Stallman <rms@gnu.org> | 6 | 2003-09-19 Richard M. Stallman <rms@gnu.org> |
| 2 | 7 | ||
| 3 | * atimer.h: Don't include lisp.h. | 8 | * atimer.h: Don't include lisp.h. |
diff --git a/src/xterm.c b/src/xterm.c index 3874f3db82f..3300f6b505d 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -8314,12 +8314,15 @@ x_set_offset (f, xoff, yoff, change_gravity) | |||
| 8314 | f->win_gravity = NorthWestGravity; | 8314 | f->win_gravity = NorthWestGravity; |
| 8315 | } | 8315 | } |
| 8316 | x_calc_absolute_position (f); | 8316 | x_calc_absolute_position (f); |
| 8317 | 8317 | ||
| 8318 | BLOCK_INPUT; | 8318 | BLOCK_INPUT; |
| 8319 | x_wm_set_size_hint (f, (long) 0, 0); | 8319 | x_wm_set_size_hint (f, (long) 0, 0); |
| 8320 | 8320 | ||
| 8321 | modified_left = f->left_pos; | 8321 | modified_left = f->left_pos; |
| 8322 | modified_top = f->top_pos; | 8322 | modified_top = f->top_pos; |
| 8323 | modified_left += FRAME_X_OUTPUT (f)->x_pixels_outer_diff; | ||
| 8324 | modified_top += FRAME_X_OUTPUT (f)->y_pixels_outer_diff; | ||
| 8325 | |||
| 8323 | #if 0 /* Running on psilocin (Debian), and displaying on the NCD X-terminal, | 8326 | #if 0 /* Running on psilocin (Debian), and displaying on the NCD X-terminal, |
| 8324 | this seems to be unnecessary and incorrect. rms, 4/17/97. */ | 8327 | this seems to be unnecessary and incorrect. rms, 4/17/97. */ |
| 8325 | /* It is a mystery why we need to add the border_width here | 8328 | /* It is a mystery why we need to add the border_width here |