diff options
| author | Martin Rudalics | 2025-02-12 10:54:28 +0100 |
|---|---|---|
| committer | Martin Rudalics | 2025-02-12 10:54:28 +0100 |
| commit | 8eef8907392942a8ececc0f989fa0bb031f4af18 (patch) | |
| tree | 41e1b2b67ba08e6b5c0fe41aef1a6ba82dc859cb | |
| parent | b5404a205c1a1aa858dc430ffaa32a35c744e244 (diff) | |
| download | emacs-8eef8907392942a8ececc0f989fa0bb031f4af18.tar.gz emacs-8eef8907392942a8ececc0f989fa0bb031f4af18.zip | |
Handle negative frame position values in xterm.c (Bug#76190)
* src/xterm.c (x_calc_absolute_position): Always handle negative
positions when XNegative or YNegative were set (Bug#76190).
| -rw-r--r-- | src/xterm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/xterm.c b/src/xterm.c index c3047c4098b..2ccf267bbd3 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -27512,7 +27512,7 @@ x_calc_absolute_position (struct frame *f) | |||
| 27512 | 27512 | ||
| 27513 | /* Treat negative positions as relative to the leftmost bottommost | 27513 | /* Treat negative positions as relative to the leftmost bottommost |
| 27514 | position that fits on the screen. */ | 27514 | position that fits on the screen. */ |
| 27515 | if ((flags & XNegative) && (f->left_pos <= 0)) | 27515 | if (flags & XNegative) |
| 27516 | { | 27516 | { |
| 27517 | int width = FRAME_PIXEL_WIDTH (f); | 27517 | int width = FRAME_PIXEL_WIDTH (f); |
| 27518 | 27518 | ||
| @@ -27539,7 +27539,7 @@ x_calc_absolute_position (struct frame *f) | |||
| 27539 | 27539 | ||
| 27540 | } | 27540 | } |
| 27541 | 27541 | ||
| 27542 | if ((flags & YNegative) && (f->top_pos <= 0)) | 27542 | if (flags & YNegative) |
| 27543 | { | 27543 | { |
| 27544 | int height = FRAME_PIXEL_HEIGHT (f); | 27544 | int height = FRAME_PIXEL_HEIGHT (f); |
| 27545 | 27545 | ||