]> git.eshelyaron.com Git - emacs.git/commitdiff
Handle negative frame position values in xterm.c (Bug#76190)
authorMartin Rudalics <rudalics@gmx.at>
Wed, 12 Feb 2025 09:54:28 +0000 (10:54 +0100)
committerEshel Yaron <me@eshelyaron.com>
Wed, 12 Feb 2025 10:53:10 +0000 (11:53 +0100)
* 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

index c3047c4098b093354c285f73943d1ef180352097..2ccf267bbd31326bea69ff91c99b08c0faa3005b 100644 (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);