From: David Karr <davidmichaelkarr@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: (set-frame-position ... 0 0) renders a few pixels right of left edge
Date: Thu, 22 Feb 2024 14:07:47 -0800 [thread overview]
Message-ID: <CAA5t8Vr4DPWieXU=MTbz8iJ2iBCjerePods7_K0aRFi2JNMbzg@mail.gmail.com> (raw)
On Windows 11, using Cygwin Emacs, I have the following at the top of my
.emacs file:
(set-frame-position (selected-frame) 0 0)
(set-frame-height (selected-frame) 57)
When the window appears, the left edge is a few pixels to the right of the
left edge. If I throw the mouse cursor to the edge of the screen, the emacs
window is not in focus.
Each time emacs starts up, I have to manually drag the window a few pixels
to the left so it aligns to the left edge.
I thought perhaps that giving the X value a negative value would help, but
the doc says that would result in a completely different behavior, making
the right edge relative to the right edge of the screen. I suppose I could
drill down until I figured out the exact negative value from the right
edge, but that is a little annoying, and it would break if I connected to a
larger monitor.
next reply other threads:[~2024-02-22 22:07 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-22 22:07 David Karr [this message]
2024-02-23 7:47 ` (set-frame-position ... 0 0) renders a few pixels right of left edge Eli Zaretskii
2024-02-26 19:20 ` David Karr
2024-02-26 19:27 ` Eli Zaretskii
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='CAA5t8Vr4DPWieXU=MTbz8iJ2iBCjerePods7_K0aRFi2JNMbzg@mail.gmail.com' \
--to=davidmichaelkarr@gmail.com \
--cc=help-gnu-emacs@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.
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).