unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: martin rudalics <rudalics@gmx.at>
To: "Óscar Fuentes" <ofv@wanadoo.es>
Cc: 22549@debbugs.gnu.org
Subject: bug#22549: 25.0.50; Tooltips placed outside of screen limits
Date: Sat, 06 Feb 2016 20:44:23 +0100	[thread overview]
Message-ID: <56B64D17.5050607@gmx.at> (raw)
In-Reply-To: <87r3gpzn5p.fsf@wanadoo.es>

 > My initial patch is not better because it doesn't protect against the
 > possible lack of information on x-display-monitor-attributes-list you
 > mentioned above and on your previous e-mail. If that structure has not
 > the correct geometry info about the current monitor, the variables
 > max/min_x/y are guaranteed to be wrong. My last patch provides some
 > protection against that circunstance, so I'll feel better committing it.

I'd still prefer something like

if (CONSP (attributes))
   while (CONSP (attributes))
     ... your new code ...
else
   ... the old code ...

but I leave it to you.  I feel uneasy talking about changes I can't
really test here.

 > (BTW, the path is basically yours, not mine. I just corrected some
 > issues but the 90% was written by you, so I'll feel a bit uneasy taking
 > credit for it.)

80% of my code was stolen from the person who wrote the Windows code.  I
suppose it was Andy Moreton but I can't find the corresponding ChangeLog
entry now.  So don't bother ;-)

 >> Have you tried with a frame that spans both monitors?
 >
 > Just tried. It seems to work fine: for a frame that spawns both
 > monitors, the tooltip is correctly positioned taking into account the
 > coordinates of the mouse cursor and the geometry of the corresponding
 > monitor.

I suppose you tested with underlying text very near the dividing screen
edge.  When you drag the frame with the mouse from left to right and
back does the tooltip "jump" accordingly from one monitor to the other?

martin





  reply	other threads:[~2016-02-06 19:44 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-04  4:05 bug#22549: 25.0.50; Tooltips placed outside of screen limits Óscar Fuentes
2016-02-04 15:55 ` martin rudalics
2016-02-04 16:20   ` Óscar Fuentes
2016-02-04 16:43     ` Eli Zaretskii
2016-02-04 17:05     ` martin rudalics
2016-02-04 19:16       ` Óscar Fuentes
2016-02-05 17:44         ` martin rudalics
2016-02-05 22:34           ` Óscar Fuentes
2016-02-06  9:30             ` martin rudalics
2016-02-05 23:52           ` Óscar Fuentes
2016-02-06  9:30             ` martin rudalics
2016-02-06 17:06               ` Óscar Fuentes
2016-02-06 18:09                 ` martin rudalics
2016-02-06 18:52                   ` Óscar Fuentes
2016-02-06 19:44                     ` martin rudalics [this message]
2016-02-06 19:49                       ` martin rudalics
2016-02-06 20:34                         ` Óscar Fuentes
2016-02-06 21:23                           ` Óscar Fuentes
2016-02-06 22:56                             ` martin rudalics
2016-02-06 23:22                               ` Óscar Fuentes

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=56B64D17.5050607@gmx.at \
    --to=rudalics@gmx.at \
    --cc=22549@debbugs.gnu.org \
    --cc=ofv@wanadoo.es \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).