diff options
| author | Richard M. Stallman | 1997-04-20 22:14:53 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1997-04-20 22:14:53 +0000 |
| commit | e73ec6fa92b7cdd3a5432a9e8d3193bd54d5e4a9 (patch) | |
| tree | 67eb7e1b83909ba16aaacc0cb125b4ed111d6805 /src/xterm.c | |
| parent | 8af06c7cf9c8587c6f37f9fef73c36cf78833b0b (diff) | |
| download | emacs-e73ec6fa92b7cdd3a5432a9e8d3193bd54d5e4a9.tar.gz emacs-e73ec6fa92b7cdd3a5432a9e8d3193bd54d5e4a9.zip | |
(x_set_offset): Turn off the code that added the border_width
to modified_left and modified_top; it seems incorrect to do that.
Diffstat (limited to 'src/xterm.c')
| -rw-r--r-- | src/xterm.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/xterm.c b/src/xterm.c index de6b336db53..ef7c17d042d 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -4033,7 +4033,7 @@ XTread_socket (sd, bufp, numchars, expected) | |||
| 4033 | count++; | 4033 | count++; |
| 4034 | numchars--; | 4034 | numchars--; |
| 4035 | } | 4035 | } |
| 4036 | else if (! NILP(Vframe_list) | 4036 | else if (! NILP (Vframe_list) |
| 4037 | && ! NILP (XCONS (Vframe_list)->cdr)) | 4037 | && ! NILP (XCONS (Vframe_list)->cdr)) |
| 4038 | /* Force a redisplay sooner or later | 4038 | /* Force a redisplay sooner or later |
| 4039 | to update the frame titles | 4039 | to update the frame titles |
| @@ -5336,15 +5336,18 @@ x_set_offset (f, xoff, yoff, change_gravity) | |||
| 5336 | BLOCK_INPUT; | 5336 | BLOCK_INPUT; |
| 5337 | x_wm_set_size_hint (f, (long) 0, 0); | 5337 | x_wm_set_size_hint (f, (long) 0, 0); |
| 5338 | 5338 | ||
| 5339 | /* It is a mystery why we need to add the border_width here | ||
| 5340 | when the frame is already visible, but experiment says we do. */ | ||
| 5341 | modified_left = f->output_data.x->left_pos; | 5339 | modified_left = f->output_data.x->left_pos; |
| 5342 | modified_top = f->output_data.x->top_pos; | 5340 | modified_top = f->output_data.x->top_pos; |
| 5341 | #if 0 /* Running on psilocin (Debian), and displaying on the NCD X-terminal, | ||
| 5342 | this seems to be unnecessary and incorrect. rms, 4/17/97. */ | ||
| 5343 | /* It is a mystery why we need to add the border_width here | ||
| 5344 | when the frame is already visible, but experiment says we do. */ | ||
| 5343 | if (change_gravity != 0) | 5345 | if (change_gravity != 0) |
| 5344 | { | 5346 | { |
| 5345 | modified_left += f->output_data.x->border_width; | 5347 | modified_left += f->output_data.x->border_width; |
| 5346 | modified_top += f->output_data.x->border_width; | 5348 | modified_top += f->output_data.x->border_width; |
| 5347 | } | 5349 | } |
| 5350 | #endif | ||
| 5348 | 5351 | ||
| 5349 | #ifdef USE_X_TOOLKIT | 5352 | #ifdef USE_X_TOOLKIT |
| 5350 | XMoveWindow (FRAME_X_DISPLAY (f), XtWindow (f->output_data.x->widget), | 5353 | XMoveWindow (FRAME_X_DISPLAY (f), XtWindow (f->output_data.x->widget), |