From: "Charles A. Roelli" <charles@aurox.ch>
To: 26905@debbugs.gnu.org
Subject: bug#26905: 25.2: MacOS: tooltips show in wrong display
Date: Sat, 13 May 2017 09:43:27 +0200 [thread overview]
Message-ID: <of6dep$5o2$1@blaine.gmane.org> (raw)
Continuing from bug#26816
(https://debbugs.gnu.org/cgi/bugreport.cgi?bug=26816#32):
On 11/05/2017 23:43, Alan Third wrote:
>> This now reminds me of a related problem, though: with Emacs 25.2 (or in
>> Emacs 26, with the above change applied to NS_PARENT_WINDOW_TOP_POS(f)),
>> tooltips originating from an area with a help-echo property (like "Lisp
>> Interaction" in the mode line in emacs -Q) in a frame on the secondary
>> monitor actually show up in the primary monitor instead -- as if the tooltip
>> frame is constrained to having a positive x-coordinate only. I haven't
>> found where it happens, but I guess the cause is similar.
>
> Look at compute_tip_xy in nsfns.m. It moves tooltips into the positive
> screen space. I’ve not managed to get to grips with this code yet.
>
> I think what we want is for it to try to keep the tooltip on one
> screen, so it’s not spanning two monitors, but allow it to go into
> negative space.
>
> Perhaps this should be a separate bug report.
"Primary" and "secondary" monitors are as follows:
(display-monitor-attributes-list) =>
(((name . "Color LCD")
(geometry 0 0 1280 800)
(workarea 0 22 1280 714)
(mm-size 290 180)
(frames #<frame emacs-devel 0x105044260> #<frame *Backtrace*
0x1199eca10> #<frame *vc-diff* 0x117dc82b8> #<frame nsterm.m
0x121c49ad8> #<frame *shell* 0x119adf830> #<frame *Minibuf-1* 0x119b33030>)
(source . "NS"))
((name . "DELL 2007WFP")
(geometry -1050 -880 1050 1680)
(workarea -1050 -880 1050 1680)
(mm-size 430 270)
(frames #<frame nsterm.h 0x117c83fd0>)
(source . "NS")))
next reply other threads:[~2017-05-13 7:43 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-13 7:43 Charles A. Roelli [this message]
2017-05-13 9:02 ` bug#26905: 25.2: MacOS: tooltips show in wrong display Charles A. Roelli
2017-05-13 9:56 ` Eli Zaretskii
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='of6dep$5o2$1@blaine.gmane.org' \
--to=charles@aurox.ch \
--cc=26905@debbugs.gnu.org \
/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.