From: "Jan D." <jan.h.d@swipnet.se>
Cc: help-emacs-windows@gnu.org, emacs-devel@gnu.org
Subject: Re: Patch to fix frame positioning bug on Windows with (make-frame '((left . -1)))
Date: Wed, 12 Jan 2005 21:04:56 +0100 [thread overview]
Message-ID: <3ABA18C9-64D5-11D9-83C1-000D93505B76@swipnet.se> (raw)
In-Reply-To: <uu0pnzo6v.fsf@world.std.com>
> Using Emacs built from CVS source code on Windows XP, the frame created
> using the following Emacs-Lisp code is positioned such that the
> rightmost 7 pixels of the frame are off the right edge of the screen:
>
> (make-frame '((width . 80) (height . 20) (top . 0) (left . -1)))
>
> Those 7 pixels encompass the border of the Windows frame and some of
> the
> right fringe. This may have been caused by revision 1.220 of w32term.c
> in which function x_calc_absolute_position() was changed:
>
> revision 1.220
> date: 2004/12/11 21:12:45; author: jhd; state: Exp; lines: +0 -30
> * w32term.c (x_calc_absolute_position): Remove calculation of
> difference between inner and outer window. Don't subtract difference
> for left and top calculations.
>
> The below patch solves the problem but it may not be optimal because it
> simply subtracts 7 from the computed value of f->left_pos.
Can you verify if your change has any impact on this bug:
http://lists.gnu.org/archive/html/emacs-pretest-bug/2004-11/
msg00519.html
This was the reason a change was made. It may be impossible to get
Emacs to work correctly on W32. Just adding 7 is no good, as you self
pointed out, a more general solution must be found.
Jan D.
next prev parent reply other threads:[~2005-01-12 20:04 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. [this message]
2005-01-12 20:45 ` Francis Litterio
2005-01-13 2:59 ` Francis Litterio
2005-01-13 3:37 ` Francis Litterio
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3ABA18C9-64D5-11D9-83C1-000D93505B76@swipnet.se \
--to=jan.h.d@swipnet.se \
--cc=emacs-devel@gnu.org \
--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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.