From unknown Mon Jun 23 14:59:57 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#19575 <19575@debbugs.gnu.org> To: bug#19575 <19575@debbugs.gnu.org> Subject: Status: 25.0.50; Wrong frame dimensions Reply-To: bug#19575 <19575@debbugs.gnu.org> Date: Mon, 23 Jun 2025 21:59:57 +0000 retitle 19575 25.0.50; Wrong frame dimensions reassign 19575 emacs submitter 19575 Juri Linkov severity 19575 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 12 16:54:33 2015 Received: (at submit) by debbugs.gnu.org; 12 Jan 2015 21:54:34 +0000 Received: from localhost ([127.0.0.1]:54787 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YAmwT-0008WV-DB for submit@debbugs.gnu.org; Mon, 12 Jan 2015 16:54:33 -0500 Received: from eggs.gnu.org ([208.118.235.92]:45929) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YAmwQ-0008WF-I9 for submit@debbugs.gnu.org; Mon, 12 Jan 2015 16:54:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YAmwK-0000xe-5H for submit@debbugs.gnu.org; Mon, 12 Jan 2015 16:54:25 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:46913) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YAmwK-0000xV-2u for submit@debbugs.gnu.org; Mon, 12 Jan 2015 16:54:24 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47650) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YAmwJ-000262-4Y for bug-gnu-emacs@gnu.org; Mon, 12 Jan 2015 16:54:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YAmwD-0000wP-Q6 for bug-gnu-emacs@gnu.org; Mon, 12 Jan 2015 16:54:23 -0500 Received: from ps18281.dreamhost.com ([69.163.222.226]:34137 helo=ps18281.dreamhostps.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YAmwD-0000w3-Hi for bug-gnu-emacs@gnu.org; Mon, 12 Jan 2015 16:54:17 -0500 Received: from localhost.linkov.net (ps18281.dreamhostps.com [69.163.222.226]) by ps18281.dreamhostps.com (Postfix) with ESMTP id 53219309507D1D for ; Mon, 12 Jan 2015 13:54:12 -0800 (PST) From: Juri Linkov To: bug-gnu-emacs@gnu.org Subject: 25.0.50; Wrong frame dimensions Organization: LINKOV.NET Date: Mon, 12 Jan 2015 23:51:19 +0200 Message-ID: <87zj9nis6g.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) --=-=-= Content-Type: text/plain Here is 100% reproducible test case: run emacs -q -mm -l test.el with the attached test.el, and notice that the mouse pointer is banished to the middle of the frame. Afterwards manually executing `M-x toggle-frame-maximized RET' twice fixes the frame dimensions. This happens in GNU Emacs 25.0.50.1 (x86_64-linux-gnu, GTK+ Version 2.24.23) Repository revision: 52afe0cfa248053c96e26bc67bdc427945358655 Windowing system distributor `The X.Org Foundation', version 11.0.11501000 System Description: Linux Mint 17 Qiana ================================================================ `window--dump-frame' outputs: frame pixel: 1366 x 718 cols/lines: 170 x 42 units: 6 x 10 frame text pixel: 1350 x 718 cols/lines: 168 x 42 tool: 0 scroll: 0/0 fringe: 16 border: 0 right: 0 bottom: 0 # parent: nil pixel left: 0 top: 0 size: 1366 x 708 new: 708 char left: 0 top: 0 size: 170 x 71 new: 71 normal: 1.0 x 1.0 new: 1.0 body pixel: 1350 x 698 char: 225 x 69 width left fringe: 8 left margin: 0 right margin: 0 width right fringe: 8 scroll-bar: 0 divider: 0 height header-line: 0 mode-line: 10 divider: 0 # parent: nil pixel left: 0 top: 708 size: 1366 x 10 new: 0 char left: 0 top: 71 size: 1366 x 1 new: 1 normal: 1.0 x 1.0 new: 0 body pixel: 1350 x 10 char: 225 x 1 width left fringe: 8 left margin: 0 right margin: 0 width right fringe: 8 scroll-bar: 0 divider: 0 height header-line: 0 mode-line: 0 divider: 0 ================================================================ `window--dump-frame' outputs after manually calling `toggle-frame-maximized' twice that fixes the frame dimensions: frame pixel: 1366 x 718 cols/lines: 227 x 71 units: 6 x 10 frame text pixel: 1350 x 718 cols/lines: 225 x 71 tool: 0 scroll: 0/0 fringe: 16 border: 0 right: 0 bottom: 0 # parent: nil pixel left: 0 top: 0 size: 1366 x 708 new: 708 char left: 0 top: 0 size: 227 x 71 new: 71 normal: 1.0 x 1.0 new: 1.0 body pixel: 1350 x 698 char: 225 x 69 width left fringe: 8 left margin: 0 right margin: 0 width right fringe: 8 scroll-bar: 0 divider: 0 height header-line: 0 mode-line: 10 divider: 0 # parent: nil pixel left: 0 top: 708 size: 1366 x 10 new: 0 char left: 0 top: 71 size: 1366 x 1 new: 1 normal: 1.0 x 1.0 new: 0 body pixel: 1350 x 10 char: 225 x 1 width left fringe: 8 left margin: 0 right margin: 0 width right fringe: 8 scroll-bar: 0 divider: 0 height header-line: 0 mode-line: 0 divider: 0 ================================================================ --=-=-= Content-Type: application/emacs-lisp Content-Disposition: attachment; filename=test.el Content-Transfer-Encoding: quoted-printable (custom-set-variables '(mouse-avoidance-banish-position (quote ((frame-or-window . frame) (side . right) (side-pos . -3) (top-or-bottom . bottom) (top-or-bottom-pos . 6)))) '(mouse-avoidance-mode (quote banish) nil (avoid)) ) (and (fboundp 'menu-bar-mode) (menu-bar-mode -1)) (and (fboundp 'scroll-bar-mode) (scroll-bar-mode -1)) (and (fboundp 'tool-bar-mode) (tool-bar-mode -1)) (create-fontset-from-ascii-font "-misc-fixed-medium-r-*--10-*-*-*-*-*-*-*") (setq default-frame-alist (append '((font . "-misc-fixed-medium-r-normal--10-*-*-*-c-60-iso8859-1") (vertical-scroll-bars . nil) (horizontal-scroll-bars . nil) (scroll-bar-width . 0) (internal-border-width . 0) (menu-bar-lines . 0) (tool-bar-lines . 0) ) default-frame-alist)) (add-hook 'after-init-hook (lambda () (toggle-frame-maximized) (toggle-frame-maximized)) t) --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 13 03:25:10 2015 Received: (at 19575) by debbugs.gnu.org; 13 Jan 2015 08:25:10 +0000 Received: from localhost ([127.0.0.1]:54942 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YAwmk-00043E-9F for submit@debbugs.gnu.org; Tue, 13 Jan 2015 03:25:10 -0500 Received: from mout.gmx.net ([212.227.15.18]:52465) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YAwmh-00042g-0j for 19575@debbugs.gnu.org; Tue, 13 Jan 2015 03:25:08 -0500 Received: from [178.191.139.42] ([178.191.139.42]) by mail.gmx.com (mrgmx001) with ESMTPSA (Nemesis) id 0M2c1V-1XsJX92yWb-00sMG7; Tue, 13 Jan 2015 09:24:54 +0100 Message-ID: <54B4D651.4040101@gmx.at> Date: Tue, 13 Jan 2015 09:24:49 +0100 From: martin rudalics MIME-Version: 1.0 To: Juri Linkov , 19575@debbugs.gnu.org Subject: Re: bug#19575: 25.0.50; Wrong frame dimensions References: <87zj9nis6g.fsf@mail.linkov.net> In-Reply-To: <87zj9nis6g.fsf@mail.linkov.net> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:gGwg4VWjGZdx+cHAB3Ww+lVyfr3jRfs2V466pOwQlrugv7dhiai 27Tnbv8UXdu+oZBXZYn7ra4+r629zC11lk5ZqgrDif5oiCVcsyYpU/eQyAIAf+aUrC4jZs1 UBPNDwW3VB+LVt7pggA9RIUqlRDQXiLdq5xaAcNHmA+u+f8kkSDphSs7ksjLqv++hnnE5CB KmfWqy0NupBi2Ht5UmBRw== X-UI-Out-Filterresults: notjunk:1; X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 19575 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) > Here is 100% reproducible test case: run > > emacs -q -mm -l test.el > > with the attached test.el, and notice that the mouse pointer > is banished to the middle of the frame. Noticed. Good catch. > Afterwards manually executing `M-x toggle-frame-maximized RET' twice > fixes the frame dimensions. > > This happens in GNU Emacs 25.0.50.1 (x86_64-linux-gnu, GTK+ Version 2.24.23) > Repository revision: 52afe0cfa248053c96e26bc67bdc427945358655 > Windowing system distributor `The X.Org Foundation', version 11.0.11501000 > System Description: Linux Mint 17 Qiana > > ================================================================ > `window--dump-frame' outputs: > > frame pixel: 1366 x 718 cols/lines: 170 x 42 units: 6 x 10 > frame text pixel: 1350 x 718 cols/lines: 168 x 42 Obviously these values can't be right: 170 * 6 gives 1020, more than 300 pixels off from 1366. What happened is that you requested a change of the font size for a maximized frame. In this case I no more allow changing the size of the frame (since otherwise you'd have lost the maximized state). Now the pixel sizes of the frame remained unaltered and I decided to quit adjust_frame_size early _without_ recording the new numbers of lines and columns of the frame. Damn me ... Hopefully fixed in revision b53b1ca..233dcf1 on trunk/master. Please check. Many thanks for the recipe, martin From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 13 18:36:41 2015 Received: (at 19575-done) by debbugs.gnu.org; 13 Jan 2015 23:36:41 +0000 Received: from localhost ([127.0.0.1]:55940 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YBB0q-0006fS-Ua for submit@debbugs.gnu.org; Tue, 13 Jan 2015 18:36:41 -0500 Received: from ps18281.dreamhost.com ([69.163.222.226]:33612 helo=ps18281.dreamhostps.com) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YBB0o-0006fI-0q for 19575-done@debbugs.gnu.org; Tue, 13 Jan 2015 18:36:38 -0500 Received: from localhost.linkov.net (ps18281.dreamhostps.com [69.163.222.226]) by ps18281.dreamhostps.com (Postfix) with ESMTP id 3D1F5378AF4CB8; Tue, 13 Jan 2015 15:36:36 -0800 (PST) From: Juri Linkov To: martin rudalics Subject: Re: bug#19575: 25.0.50; Wrong frame dimensions Organization: LINKOV.NET References: <87zj9nis6g.fsf@mail.linkov.net> <54B4D651.4040101@gmx.at> Date: Wed, 14 Jan 2015 01:34:58 +0200 In-Reply-To: <54B4D651.4040101@gmx.at> (martin rudalics's message of "Tue, 13 Jan 2015 09:24:49 +0100") Message-ID: <87387ez23h.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 19575-done Cc: 19575-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) > Hopefully fixed in revision b53b1ca..233dcf1 on trunk/master. Please > check. Thank you, I checked that now everything is right! From unknown Mon Jun 23 14:59:57 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 11 Feb 2015 12:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator