From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Pavel Martynenko Newsgroups: gmane.emacs.devel Subject: Re: Emacs 24 Mac port Date: Thu, 22 Mar 2012 13:04:07 +0200 Message-ID: <205A8D37-03B3-47DF-B9ED-CB4A6D720288@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Apple Message framework v1257) Content-Type: multipart/alternative; boundary="Apple-Mail=_6FD378F4-AAC0-47CA-911F-12F7C2ADA589" X-Trace: dough.gmane.org 1332414272 32195 80.91.229.3 (22 Mar 2012 11:04:32 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 22 Mar 2012 11:04:32 +0000 (UTC) Cc: mituharu@math.s.chiba-u.ac.jp To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Mar 22 12:04:29 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SAfof-0002un-QW for ged-emacs-devel@m.gmane.org; Thu, 22 Mar 2012 12:04:26 +0100 Original-Received: from localhost ([::1]:58280 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SAfof-0000kb-6F for ged-emacs-devel@m.gmane.org; Thu, 22 Mar 2012 07:04:25 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:58020) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SAfoY-0000jD-6B for emacs-devel@gnu.org; Thu, 22 Mar 2012 07:04:24 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SAfoT-0001fP-96 for emacs-devel@gnu.org; Thu, 22 Mar 2012 07:04:17 -0400 Original-Received: from mail-we0-f169.google.com ([74.125.82.169]:60269) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SAfoS-0001f6-TE for emacs-devel@gnu.org; Thu, 22 Mar 2012 07:04:13 -0400 Original-Received: by werj55 with SMTP id j55so2192480wer.0 for ; Thu, 22 Mar 2012 04:04:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:content-type:subject:date:message-id:cc:to:mime-version :x-mailer; bh=PVpNxts7gzJbJUMwPj8Nstwi6aBBTN5Lpre+Fsuh7A8=; b=vJEk4AFhMg5PRfq6KbBJLwPxjHcCCyD1mlehbfZ38BMISeUUWXTYuKYW1u8Pkyu3ph c1S/o+h5O2BeAsw6nuI9n4a7ZLye+f3Y8EnPxzkz7CQYh/Hvg5EnAdJfWQrhg38vWI/8 FkIGS6SpPokumpj0klxCHb16AbwW9OlHCcYYarlmnIuyBbWe7d/TookFXNSgqN9kcAhN Fduj1kwPiABGTy0pqs3MBboX8bYr1JadEqcQ3aPO8BK6Nsttu+BemggiA7i+OJT18Pr7 V+/lY34duACF/xWUnQNtwq8y9vecP8p6lm9+yRJ8aPdjGpykYI48kk9RbdjNTkEswmH6 i8rQ== Original-Received: by 10.180.83.198 with SMTP id s6mr4114489wiy.8.1332414249940; Thu, 22 Mar 2012 04:04:09 -0700 (PDT) Original-Received: from [10.0.1.3] ([81.95.190.25]) by mx.google.com with ESMTPS id gp8sm4383553wib.5.2012.03.22.04.04.08 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 22 Mar 2012 04:04:09 -0700 (PDT) X-Mailer: Apple Mail (2.1257) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 74.125.82.169 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:149165 Archived-At: --Apple-Mail=_6FD378F4-AAC0-47CA-911F-12F7C2ADA589 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii 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 @@ =20 if (INTEGERP (top)) *root_y =3D XINT (top); - else if (*root_y + XINT (dy) <=3D 0) - *root_y =3D 0; /* Can happen for negative dy */ else if (*root_y + XINT (dy) + height <=3D x_display_pixel_height (FRAME_MAC_DISPLAY_INFO (f))) /* It fits below the pointer */ @@ -3524,8 +3522,6 @@ =20 if (INTEGERP (left)) *root_x =3D XINT (left); - else if (*root_x + XINT (dx) <=3D 0) - *root_x =3D 0; /* Can happen for negative dx */ else if (*root_x + XINT (dx) + width <=3D 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 --Apple-Mail=_6FD378F4-AAC0-47CA-911F-12F7C2ADA589 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii 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 =3D XINT = (top);
-  else if (*root_y + XINT (dy) <=3D = 0)
- =    *root_y =3D 0; /* Can happen for negative dy = */
   else if (*root_y + XINT (dy) + = height
    <=3D = x_display_pixel_height (FRAME_MAC_DISPLAY_INFO = (f)))
     /* It fits below the pointer = */
@@ = -3524,8 +3522,6 @@
 
   if (INTEGERP = (left))
     *root_x =3D XINT = (left);
-  else if (*root_x + XINT (dx) <=3D = 0)
- =    *root_x =3D 0; /* Can happen for negative dx = */
   else if (*root_x + XINT (dx) + = width
    <=3D = 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
=




= --Apple-Mail=_6FD378F4-AAC0-47CA-911F-12F7C2ADA589--