From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.bugs Subject: frame-pixel-(width|height) is incorrect Date: Thu, 20 Dec 2007 14:49:47 -0800 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1198191104 25002 80.91.229.12 (20 Dec 2007 22:51:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 20 Dec 2007 22:51:44 +0000 (UTC) To: "Bug-Gnu-Emacs" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Dec 20 23:51:57 2007 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1J5UF6-0006ev-LN for geb-bug-gnu-emacs@m.gmane.org; Thu, 20 Dec 2007 23:51:52 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J5UEm-0007k5-MU for geb-bug-gnu-emacs@m.gmane.org; Thu, 20 Dec 2007 17:51:32 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1J5UEZ-0007f6-Sp for bug-gnu-emacs@gnu.org; Thu, 20 Dec 2007 17:51:19 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1J5UEX-0007au-CW for bug-gnu-emacs@gnu.org; Thu, 20 Dec 2007 17:51:18 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J5UEX-0007aY-63 for bug-gnu-emacs@gnu.org; Thu, 20 Dec 2007 17:51:17 -0500 Original-Received: from rgminet01.oracle.com ([148.87.113.118]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1J5UEW-0000jy-G5 for bug-gnu-emacs@gnu.org; Thu, 20 Dec 2007 17:51:16 -0500 Original-Received: from agmgw2.us.oracle.com (agmgw2.us.oracle.com [152.68.180.213]) by rgminet01.oracle.com (Switch-3.2.4/Switch-3.1.6) with ESMTP id lBKMp5Ks029825 for ; Thu, 20 Dec 2007 15:51:06 -0700 Original-Received: from acsmt350.oracle.com (acsmt350.oracle.com [141.146.40.150]) by agmgw2.us.oracle.com (Switch-3.2.0/Switch-3.2.0) with ESMTP id lBKCxssB004210 for ; Thu, 20 Dec 2007 15:51:05 -0700 Original-Received: from dhcp-4op11-4op12-west-130-35-178-158.us.oracle.com by acsmt350.oracle.com with ESMTP id 3457453041198190985; Thu, 20 Dec 2007 14:49:45 -0800 X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 X-Brightmail-Tracker: AAAAAQAAAAI= X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Whitelist: TRUE X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:17203 Archived-At: 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'