From: "Drew Adams" <drew.adams@Oracle.com>
To: "Bug-Gnu-Emacs" <bug-gnu-emacs@gnu.org>
Subject: frame-pixel-(width|height) is incorrect
Date: Thu, 20 Dec 2007 14:49:47 -0800 [thread overview]
Message-ID: <DHEEKFAFJEFOJHLCFPFDIEPLCCAA.drew.adams@oracle.com> (raw)
emacs -Q
I've checked the pixel size of Emacs frames with a couple of tools on
Windows, and these functions both return incorrect results:
frame-pixel-width, frame-pixel-height.
For the default frame from emacs -Q, the size I measure is this:
width 688 pixels
height 742 pixels, including the title bar, which seems to be about 29
The Emacs functions return 680 and 688 pixels for the frame width and
height, respectively. I suppose that the title bar is not counted in
the frame-pixel-height (why not, BTW?), but even accounting for that
the value is incorrect.
This has an impact on frame-size calculation for operations such as
tiling frames across and down the display.
Please correct the frame pixel sizes. If you use Windows, you can pick
up free ($) tools (e.g. mbruler) to measure the actual sizes; I don't
know about tools for other platforms.
In GNU Emacs 22.1.1 (i386-mingw-nt5.1.2600)
of 2007-06-02 on RELEASE
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (3.4) --cflags -Ic:/gnuwin32/include'
next reply other threads:[~2007-12-20 22:49 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-20 22:49 Drew Adams [this message]
2007-12-21 9:17 ` frame-pixel-(width|height) is incorrect Jason Rumney
2007-12-21 10:46 ` David Reitter
2007-12-21 10:50 ` Jason Rumney
2007-12-21 18:41 ` David Reitter
2007-12-28 0:14 ` Drew Adams
2007-12-28 13:56 ` Richard Stallman
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=DHEEKFAFJEFOJHLCFPFDIEPLCCAA.drew.adams@oracle.com \
--to=drew.adams@oracle.com \
--cc=bug-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.
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).