From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#22549: 25.0.50; Tooltips placed outside of screen limits Date: Sat, 06 Feb 2016 20:44:23 +0100 Message-ID: <56B64D17.5050607@gmx.at> References: <87zivh2k98.fsf@telefonica.net> <56B3747B.1000303@gmx.at> <87r3gs30rk.fsf@wanadoo.es> <56B384F4.8040208@gmx.at> <87d1sc2smy.fsf@wanadoo.es> <56B4DF82.8040106@gmx.at> <8760y21zrp.fsf@wanadoo.es> <56B5BD43.1070302@gmx.at> <87y4axzs2e.fsf@wanadoo.es> <56B636CF.2020609@gmx.at> <87r3gpzn5p.fsf@wanadoo.es> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1454787924 23178 80.91.229.3 (6 Feb 2016 19:45:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 6 Feb 2016 19:45:24 +0000 (UTC) Cc: 22549@debbugs.gnu.org To: =?UTF-8?Q?=C3=93scar?= Fuentes Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Feb 06 20:45:13 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1aS8nA-0005T9-PP for geb-bug-gnu-emacs@m.gmane.org; Sat, 06 Feb 2016 20:45:13 +0100 Original-Received: from localhost ([::1]:56406 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aS8n9-0003Kv-Ua for geb-bug-gnu-emacs@m.gmane.org; Sat, 06 Feb 2016 14:45:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59151) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aS8n5-0003GW-Cd for bug-gnu-emacs@gnu.org; Sat, 06 Feb 2016 14:45:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aS8n0-0001Yo-D7 for bug-gnu-emacs@gnu.org; Sat, 06 Feb 2016 14:45:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:55726) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aS8n0-0001Yb-9d for bug-gnu-emacs@gnu.org; Sat, 06 Feb 2016 14:45:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aS8n0-0001gI-0A for bug-gnu-emacs@gnu.org; Sat, 06 Feb 2016 14:45:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 06 Feb 2016 19:45:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22549 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 22549-submit@debbugs.gnu.org id=B22549.14547878836420 (code B ref 22549); Sat, 06 Feb 2016 19:45:01 +0000 Original-Received: (at 22549) by debbugs.gnu.org; 6 Feb 2016 19:44:43 +0000 Original-Received: from localhost ([127.0.0.1]:36082 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aS8mh-0001fU-Mj for submit@debbugs.gnu.org; Sat, 06 Feb 2016 14:44:43 -0500 Original-Received: from mout.gmx.net ([212.227.15.19]:64910) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aS8mg-0001fI-Ac for 22549@debbugs.gnu.org; Sat, 06 Feb 2016 14:44:42 -0500 Original-Received: from [192.168.1.100] ([212.95.7.107]) by mail.gmx.com (mrgmx001) with ESMTPSA (Nemesis) id 0MQRWm-1abzci1fFk-00TpDA; Sat, 06 Feb 2016 20:44:32 +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g3RmqLP6EbwxtXWJ8rb7ilC/OPM8GuChqZPFeh0QiK6rkel/Nljh9C3GF7kk6mUH+hk8b X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:112574 Archived-At: > 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