GNU bug report logs - #26905
25.2: MacOS: tooltips show in wrong display

Previous Next

Package: emacs;

Reported by: "Charles A. Roelli" <charles <at> aurox.ch>

Date: Sat, 13 May 2017 07:44:02 UTC

Severity: normal

Found in version 25.2

Done: Alan Third <alan <at> idiocy.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: "Charles A. Roelli" <charles <at> aurox.ch>
Cc: 26905 <at> debbugs.gnu.org
Subject: bug#26905: 25.2: MacOS: tooltips show in wrong display
Date: Sat, 13 May 2017 12:56:39 +0300
> From: "Charles A. Roelli" <charles <at> aurox.ch>
> Date: Sat, 13 May 2017 11:02:04 +0200
> 
> If I remove the marked lines in compute_tip_xy:
> 
>      if (INTEGERP (left) || INTEGERP (right))
>        *root_x = pt.x;
> =>  else if (pt.x + XINT (dx) <= 0)
> =>    *root_x = 0; /* Can happen for negative dx */
>      else if (pt.x + XINT (dx) + width
> 	     <= x_display_pixel_width (FRAME_DISPLAY_INFO (f)))
>        /* It fits to the right of the pointer.  */
>        *root_x = pt.x + XINT (dx);
>      else if (width + XINT (dx) <= pt.x)
>        /* It fits to the left of the pointer.  */
>        *root_x = pt.x - width - XINT (dx);
>      else
>        /* Put it left justified on the screen -- it ought to fit that way.  */
>        *root_x = 0;
> 
> Then the problem is gone.

Those lines were added to fix some problems (whose particulars I
cannot find at the moment), so we shouldn't remove them without
understanding what is going on.




This bug report was last modified 8 years and 3 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.