From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#46827: Broken initial size of GTK3 frame Date: Sun, 28 Feb 2021 20:09:16 +0200 Message-ID: <83tupw83oz.fsf@gnu.org> References: <6caa020a-084c-e3f2-7a34-262f7127b21b@gmx.at> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36552"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 46827@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Feb 28 19:10:26 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lGQWP-0009Qd-Vi for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 28 Feb 2021 19:10:25 +0100 Original-Received: from localhost ([::1]:57224 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lGQWO-0003iE-Rd for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 28 Feb 2021 13:10:24 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49954) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lGQW3-0003hu-0v for bug-gnu-emacs@gnu.org; Sun, 28 Feb 2021 13:10:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:35636) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lGQW2-0003Zx-Je for bug-gnu-emacs@gnu.org; Sun, 28 Feb 2021 13:10:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lGQW2-00028S-GS for bug-gnu-emacs@gnu.org; Sun, 28 Feb 2021 13:10:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 28 Feb 2021 18:10:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46827 X-GNU-PR-Package: emacs Original-Received: via spool by 46827-submit@debbugs.gnu.org id=B46827.16145357738158 (code B ref 46827); Sun, 28 Feb 2021 18:10:02 +0000 Original-Received: (at 46827) by debbugs.gnu.org; 28 Feb 2021 18:09:33 +0000 Original-Received: from localhost ([127.0.0.1]:47182 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lGQVZ-00027V-ER for submit@debbugs.gnu.org; Sun, 28 Feb 2021 13:09:33 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:59708) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lGQVX-00027G-RL for 46827@debbugs.gnu.org; Sun, 28 Feb 2021 13:09:32 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:57870) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lGQVS-0003Df-DA; Sun, 28 Feb 2021 13:09:26 -0500 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:1964 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lGQVP-0000Iu-8Z; Sun, 28 Feb 2021 13:09:24 -0500 In-Reply-To: <6caa020a-084c-e3f2-7a34-262f7127b21b@gmx.at> (message from martin rudalics on Sun, 28 Feb 2021 10:31:30 +0100) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:201022 Archived-At: > From: martin rudalics > Date: Sun, 28 Feb 2021 10:31:30 +0100 > > With a GTK3 build I start Emacs with the following initial file > contents: > > (customize-set-variable > 'default-frame-alist > '((cursor-color . "red3") > (width . 80) > (height . 32))) > > Here this results in a frame that is 36 lines high, has a root window of > 31 lines and a minibuffer window of 1 line. The remaining four lines at > the bottom of the frame are (more or less) empty. > > I traced this behavior back to > > Fix redisplay performance problems with some fonts > * src/font.c (font_list_entities): Revert part of the changes > introduced on Apr 2, 2014 to fix bug#17125. It turns out having > zero_vector in the font-cache is an important indication that > cannot be removed. (Bug#21028) This is very strange, that commit was not supposed to affect frame dimensions. Could you please step through the relevant frame-sizing code, and see how that zero_vector entry in the font-cache causes this problem?