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).
This commit is contained in:
Martin Rudalics 2025-02-12 10:54:28 +01:00
parent b5404a205c
commit 8eef890739

View file

@ -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);