From: Martin Rudalics Date: Wed, 12 Feb 2025 09:54:28 +0000 (+0100) Subject: Handle negative frame position values in xterm.c (Bug#76190) X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=a3411a655e87365d815a86ff89c22b81eb95e833;p=emacs.git 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) --- 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);