diff options
| author | Martin Rudalics <rudalics@gmx.at> | 2025-02-12 10:54:28 +0100 |
|---|---|---|
| committer | Martin Rudalics <rudalics@gmx.at> | 2025-02-12 10:54:28 +0100 |
| commit | 8eef8907392942a8ececc0f989fa0bb031f4af18 (patch) | |
| tree | 41e1b2b67ba08e6b5c0fe41aef1a6ba82dc859cb /src/xterm.c | |
| parent | b5404a205c1a1aa858dc430ffaa32a35c744e244 (diff) | |
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).
Diffstat (limited to 'src/xterm.c')
| -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) /* Treat negative positions as relative to the leftmost bottommost position that fits on the screen. */ - if ((flags & XNegative) && (f->left_pos <= 0)) + if (flags & XNegative) { int width = FRAME_PIXEL_WIDTH (f); @@ -27539,7 +27539,7 @@ x_calc_absolute_position (struct frame *f) } - if ((flags & YNegative) && (f->top_pos <= 0)) + if (flags & YNegative) { int height = FRAME_PIXEL_HEIGHT (f); |
