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#52986: 29.0.50; tab bar doesn't immediately show Date: Sun, 23 Jan 2022 11:15:49 +0100 Message-ID: <4a8ccc49-96b4-bc02-99ee-56dddc2b3877@gmx.at> References: <87k0ernzlp.fsf@ajgrf.com> 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="35008"; mail-complaints-to="usenet@ciao.gmane.io" To: Alex Griffin , 52986@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jan 23 11:16:29 2022 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 1nBZvA-0008yI-Vd for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 23 Jan 2022 11:16:28 +0100 Original-Received: from localhost ([::1]:36310 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nBZv9-00039z-Sv for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 23 Jan 2022 05:16:27 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:44908) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nBZuk-00038m-EU for bug-gnu-emacs@gnu.org; Sun, 23 Jan 2022 05:16:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:45678) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nBZuk-0004GR-5c for bug-gnu-emacs@gnu.org; Sun, 23 Jan 2022 05:16:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nBZuj-0003ty-TS for bug-gnu-emacs@gnu.org; Sun, 23 Jan 2022 05:16:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 23 Jan 2022 10:16:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52986 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 52986-submit@debbugs.gnu.org id=B52986.164293296114992 (code B ref 52986); Sun, 23 Jan 2022 10:16:01 +0000 Original-Received: (at 52986) by debbugs.gnu.org; 23 Jan 2022 10:16:01 +0000 Original-Received: from localhost ([127.0.0.1]:38581 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nBZuj-0003tg-0G for submit@debbugs.gnu.org; Sun, 23 Jan 2022 05:16:01 -0500 Original-Received: from mout.gmx.net ([212.227.17.21]:33127) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nBZug-0003tR-R6 for 52986@debbugs.gnu.org; Sun, 23 Jan 2022 05:15:59 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1642932950; bh=VC2eG+IAQ4XuFaUqV49iPwG1BKgOsC3l2WA9YBI1xXI=; h=X-UI-Sender-Class:Subject:To:References:From:Date:In-Reply-To; b=Gf4eMqQv6Iq7JrcD3UfEF5KULPOECFJAzLY42d28f7YWlA6VXVr6dQLUwh460rTs1 bUOW1+UYcuxW8xqYRJ2yDLSZ/ffrULqGQ3VD3Iug8IjoVzdIpgaMkl/hcRkF8maG4j C9vAYjZqb7Th5H4YR4BS13lA8WfppXPrUaACDX3g= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [192.168.1.101] ([213.142.97.65]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1N1wll-1m9ffL2TlZ-012Jjb; Sun, 23 Jan 2022 11:15:50 +0100 In-Reply-To: <87k0ernzlp.fsf@ajgrf.com> Content-Language: en-US X-Provags-ID: V03:K1:uC4pWBFuAxdfo86YL77wL+pRlmRETqSC55VaFZaqk/zVOkF4MU6 HQy3CJ/ILEXFeCymVbqgRkL5BbVYvR73xJ0MqEfvHgBGubARhyDXdkdX5hYVhIbV9t78AiA gT6hZ4rxM7g7aFr8YYFF8Lcq4IWAw1GBluv+Q4RyBlAuYGE9NKUTHs8zTIVDIdkPLfprebc /7EmN783kadX2/TIBKWIg== X-UI-Out-Filterresults: notjunk:1;V03:K0:QQlEXUD6XI8=:DNdQCSbV9B5j8mYDfI09dr fE57zzvk6+MWK1J6EdwVq6pRlPSnI+FqDpBV7Rc/ig0y+ErDfJQKyFHlfspwcsA9qW0wXFkL4 kmXMfufQS4vlHh73IxEyrUX8LI52E8YTzPOgOSEPfRjJnw5/GiOjbNum9FiPzMllfDvkAI2RI R7CIw2ZW9H+P3hialtDGlGHTLgk/2sssMu9It+gjZpPBDZhcgq9CXi4W/mvt3e3CTA7hZN4Qv 8KKVs9UYQBYPqYEZ4duke4a6dxGui+1b7rpxrkm2PlLhlu/HpfXUVwciWO5tPpwBxK6DGuZ1B L2Wcs7Gbex0zldkEpYBUssfdEJqi/iL22mpKvUTEOom8RVfefarMNbZRtLCiQJBULFijF75mX IqU2Tt5e4NazNN8kNa3MBSCuHME1OZEQPyOQkHLgwTpqq3rOvPHxwWoOC6JmPe2DBHA4Ow9q0 VqPmAeF5tujcHjtjyF4aOrB6levPGJSU3ixh1Yb5zhrlLHfL5qcAYsCeM3uOyxIxyWiTM+8He Bcbt7paltxheANnOhbfHfpc+1xFZqx3LaLH4ABi8U8AP05VV0Dc2TIFkuBHnGf3Cy07aepd+s 3j0iDmMtWr6vCUfli4BNVZqlKU1OWMOyODwjCehID/p/c4LMGS7t17H2CmdOMSbNzDzicTdpy NFOlUWOHf7s24xMWdXdeEGqzShQIj/n5skrSVFQ0rxmIA+ahL/NpvfXUvi8tCQaQ2OCEHohJ8 X2AXqH6Pb9QzzwP5tmfjpViAmP1f9QuCZyZKHWI6urG13BFddRRi1kpuS8id9bbXC1Js6ABd 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:224893 Archived-At: > I think I'm also hitting this issue just by docking Emacs to the side in > GNOME Shell. I've set 'frame-inhibit-implied-resize' to t, but Emacs > still wants to resize the frame when initializing tab-bar-mode. 'frame-inhibit-implied-resize' defaults to '(tab-bar-lines) so you don't even have to change its value. What you see is the following: It's a long established practice that people want their frames initially have a specified number of lines, disregarding the height of things like the tool or tab bar. To do that, Emacs calculates the initial pixel height of a GUI frame from the number of lines specified for it plus the pixel heights of a tool and tab bar, if present. Now the code that adds the latter ('x_change_tab_bar_height') uses two boolean slots for each frame - tab_bar_resized and tab_bar_redisplayed - both initially false. The latter is set by the display engine in redisplay_tab_bar to indicate that the tab bar has been redisplayed once so its pixel height has been established. The former is then set by 'x_change_tab_bar_height' from the latter. As long as tab_bar_resized has not been set for a specific frame, 'frame-inhibit-implied-resize' has no effect - Emacs will ask the window manager to resize it. > I'm currently using Emacs 29.0.50 for the new GTK/Wayland support, and I > don't see the same issue on Emacs 28.0.91. You should see it on Emacs 28. Only if you start Emacs with tab bar mode enabled initially you should not see it. martin