From: Pavel Martynenko <pavelmart@gmail.com>
To: emacs-devel@gnu.org
Cc: mituharu@math.s.chiba-u.ac.jp
Subject: Re: Emacs 24 Mac port
Date: Thu, 22 Mar 2012 13:04:07 +0200 [thread overview]
Message-ID: <205A8D37-03B3-47DF-B9ED-CB4A6D720288@gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1463 bytes --]
Fix tooltip position
$ diff -u src/macfns.c~ src/macfns.c
--- src/macfns.c~ 2012-03-22 12:37:16.000000000 +0200
+++ src/macfns.c 2012-03-22 12:36:15.000000000 +0200
@@ -3509,8 +3509,6 @@
if (INTEGERP (top))
*root_y = XINT (top);
- else if (*root_y + XINT (dy) <= 0)
- *root_y = 0; /* Can happen for negative dy */
else if (*root_y + XINT (dy) + height
<= x_display_pixel_height (FRAME_MAC_DISPLAY_INFO (f)))
/* It fits below the pointer */
@@ -3524,8 +3522,6 @@
if (INTEGERP (left))
*root_x = XINT (left);
- else if (*root_x + XINT (dx) <= 0)
- *root_x = 0; /* Can happen for negative dx */
else if (*root_x + XINT (dx) + width
<= x_display_pixel_width (FRAME_MAC_DISPLAY_INFO (f)))
/* It fits to the right of the pointer. */
--------------------------------------------------------------------------------
It happens when second monitor attached on top or left.
+---------------------++----------------+
| ||----------------|
| || main |
| second || |
| |+----------------+
| |
+---------------------+
or
+---------------------+
| |
| |
| second |
| |
| |
+---------------------+
+----------------+
|----------------|
| main |
| |
+----------------+
Cheers,
Pavlo Martynenko
pavelmart@gmail.com
[-- Attachment #2: Type: text/html, Size: 7122 bytes --]
next reply other threads:[~2012-03-22 11:04 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-22 11:04 Pavel Martynenko [this message]
-- strict thread matches above, loose matches on Subject: below --
2012-03-03 4:20 Emacs 24 Mac port YAMAMOTO Mitsuharu
2012-03-03 8:26 ` Dave Abrahams
2012-03-04 6:24 ` YAMAMOTO Mitsuharu
2012-03-06 3:52 ` YAMAMOTO Mitsuharu
2012-03-15 1:26 ` Dave Abrahams
2012-03-15 8:22 ` YAMAMOTO Mitsuharu
2012-04-02 7:02 ` YAMAMOTO Mitsuharu
2012-04-02 15:08 ` Leo
2012-04-28 2:07 ` YAMAMOTO Mitsuharu
2012-05-17 5:12 ` YAMAMOTO Mitsuharu
2012-06-01 11:43 ` YAMAMOTO Mitsuharu
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=205A8D37-03B3-47DF-B9ED-CB4A6D720288@gmail.com \
--to=pavelmart@gmail.com \
--cc=emacs-devel@gnu.org \
--cc=mituharu@math.s.chiba-u.ac.jp \
/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).