From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Francis Litterio Newsgroups: gmane.emacs.devel,gmane.emacs.windows Subject: Re: Patch to fix frame positioning bug on Windows with (make-frame '((left . -1))) Date: Wed, 12 Jan 2005 22:37:32 -0500 Message-ID: References: <3ABA18C9-64D5-11D9-83C1-000D93505B76@swipnet.se> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1105588280 5507 80.91.229.6 (13 Jan 2005 03:51:20 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 13 Jan 2005 03:51:20 +0000 (UTC) Cc: help-emacs-windows@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jan 13 04:51:14 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1Cow0w-0000Qe-00 for ; Thu, 13 Jan 2005 04:51:14 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1CowCZ-0001HZ-MI for ged-emacs-devel@m.gmane.org; Wed, 12 Jan 2005 23:03:15 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1CowBG-0000nI-Iw for emacs-devel@gnu.org; Wed, 12 Jan 2005 23:01:56 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1CowB9-0000j7-6b for emacs-devel@gnu.org; Wed, 12 Jan 2005 23:01:51 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1CowB7-0000g0-NR for emacs-devel@gnu.org; Wed, 12 Jan 2005 23:01:45 -0500 Original-Received: from [80.91.229.2] (helo=main.gmane.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Covon-0006Zk-2d for emacs-devel@gnu.org; Wed, 12 Jan 2005 22:38:41 -0500 Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1Covol-0007Kq-00 for ; Thu, 13 Jan 2005 04:38:39 +0100 Original-Received: from ppp0a036.std.com ([69.38.146.36]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 13 Jan 2005 04:38:39 +0100 Original-Received: from franl by ppp0a036.std.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 13 Jan 2005 04:38:39 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-To: emacs-devel@gnu.org Original-Lines: 21 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: ppp0a036.std.com X-Draft-From: ("nntp+news.gmane.org:gmane.emacs.devel" 32183) Gcc: nnfolder:sent-usenet X-Random-Quote: When armies are mobilized and issues are joined, the man who is sorry over the fact will win. -- Lao-tzu, The Way of Lao-tzu User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (windows-nt) Cancel-Lock: sha1:U6II7ueUQPJux+tmwqaEeZuVH7U= X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:32184 gmane.emacs.windows:2512 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:32184 I wrote: > To demonstrate that the window borders must be taken into account when > computing the negative 'left frame parameter, evaluate the below form in > a frame that is completely visible (no parts of the frame are > off-screen). Evaluating this form should not move the frame at all, > assuming your window manager draws left and right borders that are 4 > pixels each (change the two 4's if your borders are different): > > (let ((negative-left (- (+ 1 (- (display-pixel-width) > (+ 4 4 > (frame-pixel-width nil) > (frame-parameter nil 'left))))))) > (modify-frame-parameters nil `((left . ,negative-left)))) Sorry. You will only see no frame movement when evaluating the above form if you have already patched x_calc_absolute_position() as described in the parent of this article. -- Francis Litterio franl world . std . com