[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Patch to fix frame positioning bug on Windows with (make-frame '((le
From: |
Francis Litterio |
Subject: |
Re: Patch to fix frame positioning bug on Windows with (make-frame '((left . -1))) |
Date: |
Wed, 12 Jan 2005 22:37:32 -0500 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (windows-nt) |
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 <at> world . std . com