bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

frame-pixel-(width|height) is incorrect


From: Drew Adams
Subject: frame-pixel-(width|height) is incorrect
Date: Thu, 20 Dec 2007 14:49:47 -0800

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'





reply via email to

[Prev in Thread] Current Thread [Next in Thread]