all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: "Charles A. Roelli" <charles@aurox.ch>
Cc: 26905@debbugs.gnu.org
Subject: bug#26905: 25.2: MacOS: tooltips show in wrong display
Date: Sat, 13 May 2017 12:56:39 +0300	[thread overview]
Message-ID: <83o9ux84h4.fsf@gnu.org> (raw)
In-Reply-To: <ae367062-503e-93ae-d772-de7d812eda39@aurox.ch> (charles@aurox.ch)

> From: "Charles A. Roelli" <charles@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.





  reply	other threads:[~2017-05-13  9:56 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-13  7:43 bug#26905: 25.2: MacOS: tooltips show in wrong display Charles A. Roelli
2017-05-13  9:02 ` Charles A. Roelli
2017-05-13  9:56   ` Eli Zaretskii [this message]
2017-05-13 14:04     ` Charles A. Roelli
2017-05-13 15:28   ` Alan Third
2017-05-16 21:56 ` bug#26905: [PATCH] Show tooltip on correct screen (bug#26905) Alan Third
2017-05-19 16:30   ` Charles A. Roelli
2017-05-20 23:15     ` Alan Third

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83o9ux84h4.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=26905@debbugs.gnu.org \
    --cc=charles@aurox.ch \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.