From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andy Moreton Newsgroups: gmane.emacs.bugs Subject: bug#21173: 25.0.50; New frames positioned off screen with multiple monitors Date: Wed, 28 Oct 2015 17:25:31 +0000 Message-ID: References: <874mkjadqx.fsf@gmail.com> <55BCA4B1.8030103@gmx.at> <55BCEAA5.9020406@gmx.at> <55BF0E7D.1070007@gmx.at> <86k2s0v97i.fsf@gmail.com> <56137EDB.1020801@gmx.at> <56288487.9020202@gmx.at> <86h9lcou5o.fsf@gmail.com> <56309B7D.5090207@gmx.at> <83wpu72dnv.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1446053368 26978 80.91.229.3 (28 Oct 2015 17:29:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 28 Oct 2015 17:29:28 +0000 (UTC) To: 21173@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Oct 28 18:29:14 2015 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 1ZrUXB-0002VC-Q5 for geb-bug-gnu-emacs@m.gmane.org; Wed, 28 Oct 2015 18:29:14 +0100 Original-Received: from localhost ([::1]:39691 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZrUXB-00074S-Bx for geb-bug-gnu-emacs@m.gmane.org; Wed, 28 Oct 2015 13:29:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52861) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZrUV8-0004Ku-L2 for bug-gnu-emacs@gnu.org; Wed, 28 Oct 2015 13:27:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZrUV4-0003FZ-K1 for bug-gnu-emacs@gnu.org; Wed, 28 Oct 2015 13:27:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:52067) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZrUV4-0003FV-B7 for bug-gnu-emacs@gnu.org; Wed, 28 Oct 2015 13:27:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZrUV3-0007qD-UB for bug-gnu-emacs@gnu.org; Wed, 28 Oct 2015 13:27:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <874mkjadqx.fsf@gmail.com> Resent-From: Andy Moreton Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 28 Oct 2015 17:27:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21173 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.144605317930088 (code B ref -1); Wed, 28 Oct 2015 17:27:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 28 Oct 2015 17:26:19 +0000 Original-Received: from localhost ([127.0.0.1]:42775 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZrUUN-0007pE-3P for submit@debbugs.gnu.org; Wed, 28 Oct 2015 13:26:19 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:42469) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZrUU2-0007oU-0v for submit@debbugs.gnu.org; Wed, 28 Oct 2015 13:26:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZrUTw-00033Y-Dz for submit@debbugs.gnu.org; Wed, 28 Oct 2015 13:25:57 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:40583) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZrUTw-00033T-B0 for submit@debbugs.gnu.org; Wed, 28 Oct 2015 13:25:52 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52453) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZrUTv-0002L3-DT for bug-gnu-emacs@gnu.org; Wed, 28 Oct 2015 13:25:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZrUTr-00032d-9H for bug-gnu-emacs@gnu.org; Wed, 28 Oct 2015 13:25:51 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:37762) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZrUTr-00032R-2Y for bug-gnu-emacs@gnu.org; Wed, 28 Oct 2015 13:25:47 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1ZrUTn-0007wS-Qy for bug-gnu-emacs@gnu.org; Wed, 28 Oct 2015 18:25:43 +0100 Original-Received: from uk.solarflare.com ([193.34.186.16]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 28 Oct 2015 18:25:43 +0100 Original-Received: from andrewjmoreton by uk.solarflare.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 28 Oct 2015 18:25:43 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 42 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: uk.solarflare.com User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (windows-nt) Cancel-Lock: sha1:kTELS5lqbhgKX/4u0ZTC9x9mqAk= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x 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:108111 Archived-At: On Wed 28 Oct 2015, Eli Zaretskii wrote: >> From: Andy Moreton >> Date: Wed, 28 Oct 2015 14:13:28 +0000 >> >> On Wed 28 Oct 2015, martin rudalics wrote: >> > I suppose you meant writing something like >> > >> > Lisp_Object frame, list; >> > >> > XSETFRAME (frame, f); >> > list = Fw32_display_monitor_attributes_list (frame); >> > >> > Please have a look. >> >> I'm sure you know more about it than me - I don't know enough about the >> internals to judge which is correct. Feel free to adjust the patch to >> fix this. > > Martin is right: Fw32_display_monitor_attributes_list accepts a > Lisp_Object as its argument, which should be either nil, a frame, a > terminal, or a display name (a string), whereas FRAME_X_DISPLAY > returns zero on MS-Windows. I think it works for you because Qnil has > the value of zero. To catch such problems, invoke the configure > script with the --enable-check-lisp-object-type switch. Thanks Eli - adding the configure switch reproduces the warning for me. >> The patch as shown was tested with multiple monitors on Win7 64bit for both >> mingw64 and cygwin w32 builds, and worked correctly with the testcase >> from the original reporter. >> >> I've retested this briefly with your fix, which still works for the >> simple testcase shows by Fran Litterio. > > To see the difference, you need a test case where the selected frame > and the frame used in your code are different. Please suggest a suitable test case. The patch fixed the original bug, and has not caused me any problems in daily usage. AndyM