diff options
| author | Karl Heuer | 1995-05-29 07:27:09 +0000 |
|---|---|---|
| committer | Karl Heuer | 1995-05-29 07:27:09 +0000 |
| commit | aa3ff7c9438ebe6cc0039a993e3a2be89e910bb0 (patch) | |
| tree | 05d292cab782a1c776b984db1b498477da8aee12 /src/xterm.c | |
| parent | 3c9ce1c4f3391e770933b1fee9a490b6a4330ac1 (diff) | |
| download | emacs-aa3ff7c9438ebe6cc0039a993e3a2be89e910bb0.tar.gz emacs-aa3ff7c9438ebe6cc0039a993e3a2be89e910bb0.zip | |
(x_set_offset): Distinguish CHANGE_GRAVITY < 0 case.
Diffstat (limited to 'src/xterm.c')
| -rw-r--r-- | src/xterm.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/xterm.c b/src/xterm.c index a11f8466896..372f0fe5f30 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -4810,7 +4810,8 @@ x_calc_absolute_position (f) | |||
| 4810 | /* CHANGE_GRAVITY is 1 when calling from Fset_frame_position, | 4810 | /* CHANGE_GRAVITY is 1 when calling from Fset_frame_position, |
| 4811 | to really change the position, and 0 when calling from | 4811 | to really change the position, and 0 when calling from |
| 4812 | x_make_frame_visible (in that case, XOFF and YOFF are the current | 4812 | x_make_frame_visible (in that case, XOFF and YOFF are the current |
| 4813 | position values). */ | 4813 | position values). It is -1 when calling from x_set_frame_parameters, |
| 4814 | which means, do adjust for borders but don't change the gravity. */ | ||
| 4814 | 4815 | ||
| 4815 | x_set_offset (f, xoff, yoff, change_gravity) | 4816 | x_set_offset (f, xoff, yoff, change_gravity) |
| 4816 | struct frame *f; | 4817 | struct frame *f; |
| @@ -4819,7 +4820,7 @@ x_set_offset (f, xoff, yoff, change_gravity) | |||
| 4819 | { | 4820 | { |
| 4820 | int modified_top, modified_left; | 4821 | int modified_top, modified_left; |
| 4821 | 4822 | ||
| 4822 | if (change_gravity) | 4823 | if (change_gravity > 0) |
| 4823 | { | 4824 | { |
| 4824 | f->display.x->top_pos = yoff; | 4825 | f->display.x->top_pos = yoff; |
| 4825 | f->display.x->left_pos = xoff; | 4826 | f->display.x->left_pos = xoff; |
| @@ -4839,7 +4840,7 @@ x_set_offset (f, xoff, yoff, change_gravity) | |||
| 4839 | when the frame is already visible, but experiment says we do. */ | 4840 | when the frame is already visible, but experiment says we do. */ |
| 4840 | modified_left = f->display.x->left_pos; | 4841 | modified_left = f->display.x->left_pos; |
| 4841 | modified_top = f->display.x->top_pos; | 4842 | modified_top = f->display.x->top_pos; |
| 4842 | if (change_gravity) | 4843 | if (change_gravity != 0) |
| 4843 | { | 4844 | { |
| 4844 | modified_left += f->display.x->border_width; | 4845 | modified_left += f->display.x->border_width; |
| 4845 | modified_top += f->display.x->border_width; | 4846 | modified_top += f->display.x->border_width; |