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 14:13:28 +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> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1446041728 16345 80.91.229.3 (28 Oct 2015 14:15:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 28 Oct 2015 14:15: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 15:15:15 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 1ZrRVQ-000397-2X for geb-bug-gnu-emacs@m.gmane.org; Wed, 28 Oct 2015 15:15:12 +0100 Original-Received: from localhost ([::1]:38231 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZrRVP-0008Bx-9O for geb-bug-gnu-emacs@m.gmane.org; Wed, 28 Oct 2015 10:15:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50296) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZrRVK-0008Ac-V7 for bug-gnu-emacs@gnu.org; Wed, 28 Oct 2015 10:15:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZrRVG-0006NJ-O3 for bug-gnu-emacs@gnu.org; Wed, 28 Oct 2015 10:15:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:51900) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZrRVG-0006NE-L9 for bug-gnu-emacs@gnu.org; Wed, 28 Oct 2015 10:15:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZrRVF-0002mv-Vy for bug-gnu-emacs@gnu.org; Wed, 28 Oct 2015 10:15: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 14:15: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.144604165310622 (code B ref -1); Wed, 28 Oct 2015 14:15:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 28 Oct 2015 14:14:13 +0000 Original-Received: from localhost ([127.0.0.1]:42608 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZrRUT-0002lF-9p for submit@debbugs.gnu.org; Wed, 28 Oct 2015 10:14:13 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:40088) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZrRUR-0002l5-FG for submit@debbugs.gnu.org; Wed, 28 Oct 2015 10:14:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZrRUL-00065R-NB for submit@debbugs.gnu.org; Wed, 28 Oct 2015 10:14:11 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:53228) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZrRUL-00065L-KK for submit@debbugs.gnu.org; Wed, 28 Oct 2015 10:14:05 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50002) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZrRUC-00087x-UF for bug-gnu-emacs@gnu.org; Wed, 28 Oct 2015 10:14:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZrRU8-00062R-Nl for bug-gnu-emacs@gnu.org; Wed, 28 Oct 2015 10:13:56 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:50793) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZrRU8-00061Q-GU for bug-gnu-emacs@gnu.org; Wed, 28 Oct 2015 10:13:52 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1ZrRU5-00027v-UC for bug-gnu-emacs@gnu.org; Wed, 28 Oct 2015 15:13:50 +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 15:13:49 +0100 Original-Received: from andrewjmoreton by uk.solarflare.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 28 Oct 2015 15:13:49 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 39 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:1KyqS/pNLYfize/u+fLlMOluzmc= 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:108102 Archived-At: On Wed 28 Oct 2015, martin rudalics wrote: >> Hopefully this reply includes a suiteably formatted patch. > > Thanks. But compiling gets me now: > > ../../src/w32term.c: In function 'x_calc_absolute_position': > ../../src/w32term.c:5926:7: error: incompatible type for argument 1 of 'Fw32_display_monitor_attributes_list' > ./globals.h:4463:1: note: expected 'Lisp_Object' but argument is of type 'int' What non-default build options are you using to see this error ? I've built this without warnings on: mingw32 32bit mingw32 32bit wide-int mingw64 64bit cygwin 64bit > 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. 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. AndyM