From a3411a655e87365d815a86ff89c22b81eb95e833 Mon Sep 17 00:00:00 2001 From: Martin Rudalics Date: Wed, 12 Feb 2025 10:54:28 +0100 Subject: [PATCH] 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). (cherry picked from commit 8eef8907392942a8ececc0f989fa0bb031f4af18) --- src/xterm.c | 4 ++-- 1 file 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); -- 2.39.5