From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?UTF-8?Q?=C3=93scar?= Fuentes Newsgroups: gmane.emacs.bugs Subject: bug#22549: 25.0.50; Tooltips placed outside of screen limits Date: Sat, 06 Feb 2016 19:52:50 +0100 Message-ID: <87r3gpzn5p.fsf@wanadoo.es> 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> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1454784805 10421 80.91.229.3 (6 Feb 2016 18:53:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 6 Feb 2016 18:53:25 +0000 (UTC) Cc: 22549@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Feb 06 19:53: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 1aS7yq-0007n6-W2 for geb-bug-gnu-emacs@m.gmane.org; Sat, 06 Feb 2016 19:53:13 +0100 Original-Received: from localhost ([::1]:55885 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aS7yp-0004h8-U7 for geb-bug-gnu-emacs@m.gmane.org; Sat, 06 Feb 2016 13:53:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49221) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aS7yk-0004cN-0K for bug-gnu-emacs@gnu.org; Sat, 06 Feb 2016 13:53:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aS7yg-00065Z-PW for bug-gnu-emacs@gnu.org; Sat, 06 Feb 2016 13:53:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:55705) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aS7yg-00065V-MK for bug-gnu-emacs@gnu.org; Sat, 06 Feb 2016 13:53:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aS7yg-0000SY-CV for bug-gnu-emacs@gnu.org; Sat, 06 Feb 2016 13:53:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?=C3=93scar?= Fuentes Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 06 Feb 2016 18:53:02 +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.14547847811759 (code B ref 22549); Sat, 06 Feb 2016 18:53:02 +0000 Original-Received: (at 22549) by debbugs.gnu.org; 6 Feb 2016 18:53:01 +0000 Original-Received: from localhost ([127.0.0.1]:36061 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aS7ye-0000SG-Bh for submit@debbugs.gnu.org; Sat, 06 Feb 2016 13:53:01 -0500 Original-Received: from smtp20.acens.net ([86.109.99.144]:27579 helo=smtp.movistar.es) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aS7yc-0000S3-8k for 22549@debbugs.gnu.org; Sat, 06 Feb 2016 13:52:59 -0500 X-CTCH-RefID: str=0001.0A0B0205.56B64103.0062, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0 X-CTCH-VOD: Unknown X-CTCH-Spam: Unknown Original-Received: from qcore (83.38.42.1) by smtp.movistar.es (8.6.122.03) (authenticated as 981711563$telefonica.net) id 56B309D80036507C; Sat, 6 Feb 2016 18:52:51 +0000 In-Reply-To: <56B636CF.2020609@gmx.at> (martin rudalics's message of "Sat, 06 Feb 2016 19:09:19 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) 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:112572 Archived-At: martin rudalics writes: > But =E2=80=98x_display_pixel_height=E2=80=99 returns the value of 'Height= OfScreen' which > is what we need for the one monitor case. Ok. > My concern was less that =E2=80=98x-display-monitor-attributes-list=E2=80= =99 would not > assign a value to max_y. My concern was that that value could be wrong. > > Anyway. Better install your initial patch then. It's cleaner and we'll > see soon enough whether it causes any problems. 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. (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.) >>> And just to make sure: Can we rely on the fact that XQueryPointer always >>> gives reliable results with multiple monitors and its present arguments? >> >> Dunno. I know nothing about X Windows. > > 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.