From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#46827: Broken initial size of GTK3 frame Date: Mon, 1 Mar 2021 09:32:10 +0100 Message-ID: <76243df2-3899-961c-3c9a-ba792a2311d1@gmx.at> References: <6caa020a-084c-e3f2-7a34-262f7127b21b@gmx.at> <83tupw83oz.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30054"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 46827@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Mar 01 09:33:17 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 1lGdzR-0007hZ-G0 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 01 Mar 2021 09:33:17 +0100 Original-Received: from localhost ([::1]:39942 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lGdzQ-0008WG-GC for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 01 Mar 2021 03:33:16 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44716) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lGdzC-0008Vb-P6 for bug-gnu-emacs@gnu.org; Mon, 01 Mar 2021 03:33:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36448) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lGdzC-0003nQ-Gr for bug-gnu-emacs@gnu.org; Mon, 01 Mar 2021 03:33:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lGdzC-0002F3-D3 for bug-gnu-emacs@gnu.org; Mon, 01 Mar 2021 03:33:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 01 Mar 2021 08:33: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.16145875398568 (code B ref 46827); Mon, 01 Mar 2021 08:33:02 +0000 Original-Received: (at 46827) by debbugs.gnu.org; 1 Mar 2021 08:32:19 +0000 Original-Received: from localhost ([127.0.0.1]:47994 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lGdyV-0002E8-Hs for submit@debbugs.gnu.org; Mon, 01 Mar 2021 03:32:19 -0500 Original-Received: from mout.gmx.net ([212.227.15.15]:36597) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lGdyU-0002Dv-M1 for 46827@debbugs.gnu.org; Mon, 01 Mar 2021 03:32:19 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1614587532; bh=Zm7/gBt9jUm/WiiVo0vVZHRQlCj5/tt+uU4JbcXLs2U=; h=X-UI-Sender-Class:Subject:To:Cc:References:From:Date:In-Reply-To; b=ZhdOhpRHqtEU2DXssW8tY/+ftcmVc5LTqlaImXbMLWYpBz+pIi0x+yTEe0h8FBcZy o3Bwb93R/PAKch0MyNGciMLGcRgZN29y0dI3sdJMte0E+okFTaEq0OTDQtN7eMjh3r nWi5WEBwXmE54nInL7wIxmkKnwaWGJHshRyEABrA= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [192.168.1.101] ([213.162.73.118]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MjS5A-1lfE5m1tec-00l0fg; Mon, 01 Mar 2021 09:32:12 +0100 In-Reply-To: <83tupw83oz.fsf@gnu.org> Content-Language: en-US X-Provags-ID: V03:K1:Meb7IZ4cSUQQzMlKLXaoX1SambR/CBe/GGtZc1yx7exl2Q7v5VF AHspaZEkfG+QqdGrG7yWHXTRDPkBMNhETc0qbM8VEPasX6qGmYuu093C3z3wFTUJlae0GnT kmdLpMpLjHoz4BSdkyNeBpA00aegEov9OMivbvHEtF0Cyi0zHHYco2UHIolLg498dVKkMO0 vsmb2yao7Eu/byAek+tFQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:jL6InY5JClA=:x9LPcYvqCX0c9COfNTHdj+ 5KQorvNK8b6jICtgJMg2FRCHat4X7JJIgjuCkmOdPRpEkIENS/JVU2eogoCNLMsfxUV/2Cf06 7Grxk3ZYMAr0RDjpwp7dexfTV7D/rpMOoGMv1i+I6uP+uHHpKjhc+Np9fCe6GD8zs/es8/5fP Pin15BZEPhVRG7YLoQWmdy1ZVOccLLqswonkpieQnbbzydis2vKt07CRi/Cqv/Z2IyAH7Hb8G jMTJzrdEH5b8HkBesILJPCEMnQ4v2b10LdF+SXGr/1MqxEiaPOXXPLrxORTm3UsPROLcIvDNQ 0/qP55pnf8zNiuBukqveZ2uaBfdRpRW9KIaTMqOHIglRpzZtW5qamx9iWIJPQmaWE55sy76tp 7L4MouEC4ZTCwoPldHV2QUhMOA7DfJ0KDIeYE6rbNf1w1PPLHdbtCDtfWrHXMvABkbl5WNIDm pR7saEpL2y1IAO5aH0cdEPKjaePP0z6TP5JWXHxXhhQajeppFtnk2q3fPVpNGW4YoVcHs0Qap DWcHcwJqHDu+y6xG5seUXt3cI+K6S5wnP3+31VOToXVL0TU+tq9Li611Q6/OwI+Jgw/z4x/iZ Ja/cyCp+2BFcKuwPTgNc7VDAwGVOUMTcmURbnFK76+p8hfMGp9lwUwaStLBmrIz/DmWGqhZ7d +kh3l58xP4DF+n/tB7/qs3SuZ6Qo71JJN6HglCwDFcV+/CgEG+FH6lHayWmog1nNNx0V3kPhB l6PKcP1KwDc0cQCrspDVwQx/PV91iJFVe0b3QzPvKCAQHRvf5/lXtVblLORBOfXa5wSyog0i 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:201064 Archived-At: > 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? The bug seems to be caused by the part of the tool bar code that tries to detect the height of the tool bar and resize the frame correspondingly. Turning off the tool bar makes the bug disappear. The font.c change garbles the order of the calls of frame resizing routines. The following lines produced by `frame--size-history' are from a "good" run (with the patch I posted earlier here applied) FRAME-NOTICE-USER nil ((cursor-color . red3) (width . 80) (height . 32)) adjust-frame-size-1 (720 648 720 576) (x-set-frame-parameters 1) adjust-frame-size-2 (720 648 720 576) (nil nil) xg-frame-set-char-size-3 (720 648 720 576) (752 601) xg-frame-resized (720 648 720 576) nil adjust-frame-size-1 (720 648 720 576) (change-frame-size 5) adjust-frame-size-3 (720 648 720 576) (752 648 752 576) update-frame-tool-bar nil nil adjust-frame-size-1 (720 576 720 576) (tool-bar-lines 2) adjust-frame-size-2 (720 576 720 576) (nil nil) xg-frame-set-char-size-3 (720 576 720 576) (752 642) xg-frame-resized (720 576 720 576) nil while these lines are from a "bad" run (one showing the bug) FRAME-NOTICE-USER nil ((cursor-color . red3) (width . 80) (height . 32)) adjust-frame-size-1 (720 648 720 576) (x-set-frame-parameters 1) adjust-frame-size-2 (720 648 720 576) (nil nil) xg-frame-set-char-size-3 (720 648 720 576) (752 601) xg-frame-resized (720 648 720 576) nil update-frame-tool-bar nil nil adjust-frame-size-1 (720 648 720 648) (tool-bar-lines 2) adjust-frame-size-2 (720 648 720 648) (nil nil) xg-frame-set-char-size-3 (720 648 720 648) (752 714) xg-frame-resized (720 648 720 648) nil adjust-frame-size-1 (720 648 720 576) (change-frame-size 5) adjust-frame-size-3 (720 648 720 576) (752 648 752 576) In the bad run, the `change-frame-size' call apparently gets delayed (by a skipped 'do_pending_window_change' presumably) until after an update_frame_tool_bar call gets there first. But so far I have no idea why font cache issues would have any impact on the order of how things get executed here. martin