From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Francis Litterio Newsgroups: gmane.emacs.bugs Subject: bug#21173: 25.0.50; New frames positioned off screen with multiple monitors Date: Sat, 1 Aug 2015 15:03:38 +0000 (UTC) Message-ID: References: <874mkjadqx.fsf@gmail.com> <55BCA4B1.8030103@gmx.at> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1438441465 2636 80.91.229.3 (1 Aug 2015 15:04:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 1 Aug 2015 15:04:25 +0000 (UTC) To: 21173@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Aug 01 17:04:12 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 1ZLYKZ-0007Pp-AK for geb-bug-gnu-emacs@m.gmane.org; Sat, 01 Aug 2015 17:04:11 +0200 Original-Received: from localhost ([::1]:54013 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZLYKY-0005fz-5s for geb-bug-gnu-emacs@m.gmane.org; Sat, 01 Aug 2015 11:04:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46687) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZLYKU-0005fh-2f for bug-gnu-emacs@gnu.org; Sat, 01 Aug 2015 11:04:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZLYKQ-0006jM-Q2 for bug-gnu-emacs@gnu.org; Sat, 01 Aug 2015 11:04:06 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:35288) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZLYKQ-0006jG-Mo for bug-gnu-emacs@gnu.org; Sat, 01 Aug 2015 11:04:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZLYKQ-0003mL-Gk for bug-gnu-emacs@gnu.org; Sat, 01 Aug 2015 11:04:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <874mkjadqx.fsf@gmail.com> Resent-From: Francis Litterio Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 01 Aug 2015 15:04:02 +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.143844143314509 (code B ref -1); Sat, 01 Aug 2015 15:04:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 1 Aug 2015 15:03:53 +0000 Original-Received: from localhost ([127.0.0.1]:36734 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZLYKH-0003lw-EQ for submit@debbugs.gnu.org; Sat, 01 Aug 2015 11:03:53 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:33159) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZLYKF-0003ln-LJ for submit@debbugs.gnu.org; Sat, 01 Aug 2015 11:03:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZLYKE-0006ik-K2 for submit@debbugs.gnu.org; Sat, 01 Aug 2015 11:03:51 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:57645) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZLYKE-0006ig-FT for submit@debbugs.gnu.org; Sat, 01 Aug 2015 11:03:50 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46662) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZLYKD-0005e7-H2 for bug-gnu-emacs@gnu.org; Sat, 01 Aug 2015 11:03:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZLYKA-0006iP-8l for bug-gnu-emacs@gnu.org; Sat, 01 Aug 2015 11:03:49 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:40787) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZLYKA-0006iG-1w for bug-gnu-emacs@gnu.org; Sat, 01 Aug 2015 11:03:46 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1ZLYK7-0007Fj-Pl for bug-gnu-emacs@gnu.org; Sat, 01 Aug 2015 17:03:44 +0200 Original-Received: from 46.sub-70-215-22.myvzw.com ([70.215.22.46]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 01 Aug 2015 17:03:43 +0200 Original-Received: from flitterio by 46.sub-70-215-22.myvzw.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 01 Aug 2015 17:03:43 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 41 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: sea.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 70.215.22.46 (Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.125 Safari/537.36) 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: 140.186.70.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:105273 Archived-At: martin rudalics gmx.at> writes: > > In buffer *scratch*: > > > > (setq f (make-frame '((left . -1)))) > > # IZSYSTEM023 015257f0> > > > > (frame-parameter f 'left) > > 3155 > > > > The left offset of the new frame appears to be 1920 pixels too > > far to the right. > ... you try to the position the right edge of the frame by 1 pixel left > of the right edge of the "screen". Didn't you get exactly that? No. The new frame is completely off-screen, almost a full monitor's width right of the right edge of the the right monitor. It's left frame parameter has been computed incorrectly by function x_calc_absolute_position. > That > is, talking about a "left offset" in this case is misleading. > What was your "right offset? An Emacs frame does not have a "right offset". The (left . -1) above means to set the left frame parameter to whatever value is needed to position the right edge of the frame at the right edge of the display. That does not happen in my case, because my display's left offsets start at -1980 (at the left edge of the left monitor) and proceed to 0 (the left edge of the right monitor) and then to +1979 (right edge of the right monitor). Function x_calc_absolute_position does not account for the fact that my left monitor's left offsets are negative. I believe that is the root of the bug. -- Fran flitterio gmail.com