From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Reuben Thomas via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#72986: Disabling menu-bar-mode changes size of new frames Date: Tue, 3 Sep 2024 18:29:00 +0100 Message-ID: References: <86ttex6iv0.fsf@gnu.org> <062bf084-741b-4d60-b9de-c62d62a79807@gmx.at> <7b6a5b97-fb0c-4eb0-a5b8-78b6ad5002d9@gmx.at> Reply-To: Reuben Thomas Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000052a74c06213a65c1" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40160"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Po Lu , Eli Zaretskii , 72986@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Sep 03 19:31:28 2024 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 1slXNI-000AES-9P for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 03 Sep 2024 19:31:28 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1slXN0-0007iG-Dp; Tue, 03 Sep 2024 13:31:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1slXMs-0007dy-5l for bug-gnu-emacs@gnu.org; Tue, 03 Sep 2024 13:31:03 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1slXMr-0004sa-EM for bug-gnu-emacs@gnu.org; Tue, 03 Sep 2024 13:31:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=Date:From:In-Reply-To:References:MIME-Version:To:Subject; bh=MrYG2vqkCwavXBrc1C8dmJ0imELY6G3RRYypq6G75OQ=; b=KkIqd9ZotDhxU6IU2kapcjTdU0bIG/U6YRpzVgQ8jNobFnc4bqI7dUIR8WMs8tsyREoXM0BMYrK1JoEhPykqXjEXOEcdKxnI5U/C4iE1OpCnJM/JBFrRvegwmLScStXRcNXn26PN+p+G4logALQUxDdlWz62/vUy8gN8UyzTzoVI21WFKovVHEOYC2dcCrJ4ENAl2tBeTYHiJFn9VFiFkKk4yB+pDZ4HyBF1LGKt5hUXevsYYxg9r0WACdCnovk9i4yv88eBe1+twsQkr8qQ2Hf4uxWPGPSeSUX0s0lp3cZD6rkwIqfAlN6a60K1206xfRHL4EJZgQg7gNY80Hkg/g==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1slXNp-0002sk-RO for bug-gnu-emacs@gnu.org; Tue, 03 Sep 2024 13:32:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Reuben Thomas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 03 Sep 2024 17:32:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72986 X-GNU-PR-Package: emacs Original-Received: via spool by 72986-submit@debbugs.gnu.org id=B72986.172538468511027 (code B ref 72986); Tue, 03 Sep 2024 17:32:01 +0000 Original-Received: (at 72986) by debbugs.gnu.org; 3 Sep 2024 17:31:25 +0000 Original-Received: from localhost ([127.0.0.1]:60893 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1slXNE-0002rn-My for submit@debbugs.gnu.org; Tue, 03 Sep 2024 13:31:25 -0400 Original-Received: from mail-yw1-f176.google.com ([209.85.128.176]:61846) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1slXNA-0002rS-6y for 72986@debbugs.gnu.org; Tue, 03 Sep 2024 13:31:23 -0400 Original-Received: by mail-yw1-f176.google.com with SMTP id 00721157ae682-6c49c9018ebso52083447b3.3 for <72986@debbugs.gnu.org>; Tue, 03 Sep 2024 10:30:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sc3d.org; s=google; t=1725384552; x=1725989352; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=MrYG2vqkCwavXBrc1C8dmJ0imELY6G3RRYypq6G75OQ=; b=grO/eZxAmWbpTwjPWc5A8DoWPauiHxVL7R9xOVP7/dA7c4Gb2ODsrE3Z49FavFR5OE 0VjfvDlDYvOI2khpPwpMWoEwP28STbNp+TYlW7N7lsRImNuQg07P7zBPWxu2H1WpgsCX LezJGeIev/YNPmsW2Vy+hxQgpyrKhj5a67TQY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725384552; x=1725989352; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=MrYG2vqkCwavXBrc1C8dmJ0imELY6G3RRYypq6G75OQ=; b=ohrGIFKCmfoBCVMFcalf4qxrVd2H0DkOTus/C9xupegB5iPVsogfgWaRYx3P4FlOPf sBcDTdvPDyV8LJcRdL1iYHjuffZXlDppPBOhMr3BV2cQrmyrve2LGYtfrvX9A9L//IZx bxValBUfPHMFzuJXseSV8SbR7p9C1D8RddpHbHW+DtPlcmhUyEauyAuV6aQMuRCz5nny Gxn4MP93kv5BTRrfN8X/p1kqL2EZdVumKQGlGu2n1gLPkr+2W5gnf4s6KJTVQag7gyd7 Ib4a8OS3vaRvlZOj7s0L09ObOWLEVc3RixX7bOLT0VHFD8ZjPSdpoi/m7sS4S7QQOSmF hIww== X-Forwarded-Encrypted: i=1; AJvYcCXa0UapsCIT+uA2OtzoTPglpCK/e+AAe9AmDeKAULIOqXlTISlhLnnNPJFzf/VQDOWgZtIxMA==@debbugs.gnu.org X-Gm-Message-State: AOJu0YxpVjczLi8N8otwd4WcNypycS16P10qcQ3S3QFS9PE2M4XYLc+L eTPph1RvkvvxX0xgCeeGWd36mSR8+7Kx0gSLcV/dOwAXZmHRbsTuMhpstDU9GifzniUTdk266gT 6MGk3lL0+g61IKcLFe/FSVxRpHbT0zRmr3ZMV+w== X-Google-Smtp-Source: AGHT+IGG2bh0lLCqV75R+4r3WjQ8P6iHIC6BxSVIGV5vwiBX1P3+UJDqFrJ1zi0vjygeXTR9qAiZwzL7qNCmJ6pqA/c= X-Received: by 2002:a05:690c:f0e:b0:6bd:e76d:19ea with SMTP id 00721157ae682-6d40d88f66fmr167544687b3.8.1725384551990; Tue, 03 Sep 2024 10:29:11 -0700 (PDT) In-Reply-To: <7b6a5b97-fb0c-4eb0-a5b8-78b6ad5002d9@gmx.at> 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:291162 Archived-At: --00000000000052a74c06213a65c1 Content-Type: text/plain; charset="UTF-8" On Tue, 3 Sept 2024 at 18:03, martin rudalics wrote: > > Sure thing: > > Thanks. The geometry values are consistent with what you described. > This seems to be Bug#67654 and Bug#68463 and possibly Bug#65559. When > you run Emacs from a console or under gdb can you observe whether it > triggers a > > gtk_distribute_natural_allocation: assertion 'extra_space >= 0' failed > Yes, both with Emacs 29 and git master produce this message when menu-bar-mode is non-nil, and the menu bar is drawn, in both window sizes (the normal sized window, and the strangely small one). The one really notable difference to the above bugs is that the 29 > version makes a shrunk frame only after you've removed the menubar while > master makes a shrunk frame immediately. Are the GTK versions of the > Emacs 29 build and the master build the same? > Yes, they are identical: gtk 3.24.41, Ubuntu build. Just to make sure one thing: Would setting > 'frame-resize-pixelwise' to t change anything? > So, I did (setq frame-resize-pixelwise t), then disabled menu-bar-mode (in Emacs 29), then C-x 5 2 (in both Emacs 29 & git master), and the new window was small, just as before. It seems therefore to make no difference. Otherwise I would try to build Emacs with gtk2, lucid or motif. I tried building Emacs git master with gtk2, and it doesn't fix the problem: the second window opened is slightly smaller than before (i.e. very small indeed). Building with lucid does fix the problem (both with menu-bar-mode enabled, and disabled). -- https://rrt.sc3d.org --00000000000052a74c06213a65c1 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Tue, 3 Sept 2024 at 18:03, martin rudalics <rudalics@gmx.at> wrote:
=C2=A0> Sure thing:

Thanks.=C2=A0 The geometry values are consistent with what you described. This seems to be Bug#67654 and Bug#68463 and possibly Bug#65559.=C2=A0 When=
you run Emacs from a console or under gdb can you observe whether it
triggers a

gtk_distribute_natural_allocation: assertion 'extra_space >=3D 0'= ; failed

Yes, both w= ith Emacs 29 and git master produce this message when menu-bar-mode is non-= nil, and the menu bar is drawn, in both window sizes (the normal sized wind= ow, and the strangely small one).

The one really notable difference to the above bugs is that the 29
version makes a shrunk frame only after you've removed the menubar whil= e
master makes a shrunk frame immediately.=C2=A0 Are the GTK versions of the<= br> Emacs 29 build and the master build the same?

Yes, they are identical: gtk 3.24.41, Ubuntu buil= d.

Just to make sure one thing: Would setting
'frame-resize-pixelwise' to t change anything?

So, I did (setq frame-resize-pixelwise t= ), then disabled menu-bar-mode (in Emacs 29), then C-x 5 2 (in both Emacs 2= 9 & git master), and the new window was small, just as before. It seems= therefore to make no difference.

Otherwise I would try to build Emacs with gtk2, lucid or motif.

I tried building Emacs git master with g= tk2, and it doesn't fix the problem: the second window opened is slight= ly smaller than before (i.e. very small indeed).

Building with lucid does fix the problem (both = with menu-bar-mode enabled, and disabled).

--
--00000000000052a74c06213a65c1--