From: Francis Litterio <franl@world.std.com>
Cc: help-emacs-windows@gnu.org
Subject: Re: Patch to fix frame positioning bug on Windows with (make-frame '((left . -1)))
Date: Wed, 12 Jan 2005 22:37:32 -0500 [thread overview]
Message-ID: <uacrem204.fsf@world.std.com> (raw)
In-Reply-To: uk6qi5915.fsf@world.std.com
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
prev parent reply other threads:[~2005-01-13 3:37 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-11 20:30 Patch to fix frame positioning bug on Windows with (make-frame '((left . -1))) Francis Litterio
2005-01-12 20:04 ` Jan D.
2005-01-12 20:45 ` Francis Litterio
2005-01-13 2:59 ` Francis Litterio
2005-01-13 3:37 ` Francis Litterio [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=uacrem204.fsf@world.std.com \
--to=franl@world.std.com \
--cc=help-emacs-windows@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).