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 16:59:14 +0100 Message-ID: References: <86ttex6iv0.fsf@gnu.org> <062bf084-741b-4d60-b9de-c62d62a79807@gmx.at> Reply-To: Reuben Thomas Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000050009906213924de" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22465"; 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 18:02:27 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 1slVz8-0005j6-8l for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 03 Sep 2024 18:02:26 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1slVy0-00078o-FO; Tue, 03 Sep 2024 12:01:17 -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 1slVxk-0006na-3C for bug-gnu-emacs@gnu.org; Tue, 03 Sep 2024 12:01:04 -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 1slVxj-0001ka-KI for bug-gnu-emacs@gnu.org; Tue, 03 Sep 2024 12:00:59 -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=RkPbXTx8MLbmgGrlvyRWDIW5hLn96+2q+6o4oNM4NZc=; b=mfxSN2NdeXDHgAByqymGulV4J6uO+ze01vcNTeOaaEuyimxlZFz9nGBKvVHhHhXi78wPSTofkIuTbFDOUabJw937N9dxm5OVdQtmDSbPaLCHnE7E+YnvT5tlqWBswmYuV8e6S1fuU7MQiixe428mpNIUDibiJH8+NnBVFndf92bF9qlVR05tk2uOVScwlYS99G2zjCy/xhNpDo8NW+9P9P0S7RKIIh/pQwcYy9fXV3X+sW84eC5RO4vFNtXKrCwQWmxb5b+1Z+0sPERGZJzNyZyRUQYLhwq5Uz8nAg8cqdBoCMg+467JCjUsFj+lujyVmvf0mkYGiASXlkcN54qHJg==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1slVyj-0000LU-OR for bug-gnu-emacs@gnu.org; Tue, 03 Sep 2024 12:02: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 16:02: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.17253793001298 (code B ref 72986); Tue, 03 Sep 2024 16:02:01 +0000 Original-Received: (at 72986) by debbugs.gnu.org; 3 Sep 2024 16:01:40 +0000 Original-Received: from localhost ([127.0.0.1]:60622 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1slVyN-0000Kq-U5 for submit@debbugs.gnu.org; Tue, 03 Sep 2024 12:01:40 -0400 Original-Received: from mail-yw1-f170.google.com ([209.85.128.170]:54764) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1slVyI-0000KI-Jf for 72986@debbugs.gnu.org; Tue, 03 Sep 2024 12:01:38 -0400 Original-Received: by mail-yw1-f170.google.com with SMTP id 00721157ae682-6d74ff7216eso19586497b3.1 for <72986@debbugs.gnu.org>; Tue, 03 Sep 2024 09:00:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sc3d.org; s=google; t=1725379166; x=1725983966; 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=RkPbXTx8MLbmgGrlvyRWDIW5hLn96+2q+6o4oNM4NZc=; b=L+b1hCSsXiJ/nY27f4HZx7zs9GCLqHa6gB7iJg4XJHDxaOlEXeKY7nXSZZiKPhETJS RBCyM3cWnRuWmBrcc8gT3UC61DPgWlZqCdMw2UHpHXH2lQXap2tSRGW0z0e5J1wznNfl uzKTjssOru0vmjiG3eBlOl+e7Y21Nhs1UE3RI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725379166; x=1725983966; 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=RkPbXTx8MLbmgGrlvyRWDIW5hLn96+2q+6o4oNM4NZc=; b=eKRVQA6ioRAHqU1zMnMbtAHkyi9RJobo1VAA3m+eqoxFBRsPdpJTX9NFsH89eHMgXH Ok5sNju+GmeYdQK2TAfC87ESpz8CoYtwGAE0uzzgxWtpia8pW0KxkV2tSCFJZLEyWtBE owvWYry70r0j7nvc0Gl4MlSG1LYRAjwT0OdkHe2S8KLp7tj3H/T3qfFVxSDYvoiCJFKT MWlGxmWhD2Mah6bEcUxYUF3+/8k70teLtk0HKX6xkB++6rE+2uxUihheuSlPMuBFnofD QmNHdHxEvv7mcpyB+EN8RSiBtTBBKSx1id7OfQatfSwnB3WH2VBMTSifo8crzDyRqBs9 3DNA== X-Forwarded-Encrypted: i=1; AJvYcCWNGLEpuW9WdyKjrrTwmFbCCoLqc5qzGlah36EUerhg3mGO46BRa0JwZne5Bluto1xkeZbI2g==@debbugs.gnu.org X-Gm-Message-State: AOJu0YxNI8Z6yEP9S/iUNMBwZXvDeXZiEE0AZOvqlJPj6p1PbI2pnMz8 JSf9ypoGISG0aMk6oea9Hm+cruMZpDi1bFLs5cdUp4ik5SorbYD1kwBTFs1FOZicIOE962Dp2tZ LKRRII2CtDrY3utlnK9Kg96ijfbvxSeKVkwRvAw== X-Google-Smtp-Source: AGHT+IFTM9Wcv+KU7uktjVgOS0Blm76hrLuunaTQ/mLOWqS1Hy2WKTnFK8SEVoDM2vGIjKRelnZaSFP8KV82MZ3aCm0= X-Received: by 2002:a05:690c:660f:b0:6ac:d0ac:f74d with SMTP id 00721157ae682-6d40fa2211amr164706907b3.26.1725379166329; Tue, 03 Sep 2024 08:59:26 -0700 (PDT) In-Reply-To: <062bf084-741b-4d60-b9de-c62d62a79807@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:291154 Archived-At: --00000000000050009906213924de Content-Type: text/plain; charset="UTF-8" On Tue, 3 Sept 2024 at 16:52, martin rudalics wrote: > >> Reproduction with Emacs 29.3 (also with git master HEAD, see below). > >> > >> Run: emacs -Q > >> C-x 5 2 ; window opens the same size as the initial window > >> M-x menu-bar-mode RET ; disable menu-bar-mode > > Here with a GTK-3 build on XFCE disabling menu-bar-mode makes both > frames smaller by the menu bar height. Does this happen on your system? > Yes it does. >> C-x 52 ; window opens much smaller than initial window > >> > >> With master HEAD (commit 92ea393a16e), the situation is slightly > different: > >> > >> Run: emacs -Q > >> C-x 52 ; window opens much smaller than initial window > > In all these cases after every single step please evaluate > > (frame-geometry) > > and post the results here. Sure thing: Emacs 29: emacs -Q (frame-geometry): ((outer-position 1127 . 81) (outer-size 1384 . 1504) (external-border-size 28 . 34) (outer-border-width . 0) (title-bar-size 0 . 46) (menu-bar-external . t) (menu-bar-size 1328 . 50) (tab-bar-size 0 . 0) (tool-bar-external . t) (tool-bar-position . top) (tool-bar-size 1328 . 82) (internal-border-width . 0)) C-x 5 2 menu-bar-mode RET (frame-geometry): ((outer-position 1127 . 81) (outer-size 1384 . 1454) (external-border-size 28 . 34) (outer-border-width . 0) (title-bar-size 0 . 46) (menu-bar-external . t) (menu-bar-size 0 . 0) (tab-bar-size 0 . 0) (tool-bar-external . t) (tool-bar-position . top) (tool-bar-size 1328 . 82) (internal-border-width . 0)) C-x 5 2 (frame-geometry): ((outer-position 28 . 90) (outer-size 456 . 570) (external-border-size 28 . 34) (outer-border-width . 0) (title-bar-size 0 . 46) (menu-bar-external . t) (menu-bar-size 0 . 0) (tab-bar-size 0 . 0) (tool-bar-external . t) (tool-bar-position . top) (tool-bar-size 400 . 82) (internal-border-width . 0)) Emacs git master (commit 92ea393a16e): emacs -Q (frame-geometry): ((outer-position 28 . 90) (outer-size 1384 . 1504) (external-border-size 28 . 34) (outer-border-width . 0) (title-bar-size 0 . 46) (menu-bar-external . t) (menu-bar-size 1328 . 50) (tab-bar-size 0 . 0) (tool-bar-external . t) (tool-bar-position . top) (tool-bar-size 1328 . 82) (internal-border-width . 0)) C-x 5 2 (frame-geometry): ((outer-position 108 . 170) (outer-size 456 . 620) (external-border-size 28 . 34) (outer-border-width . 0) (title-bar-size 0 . 46) (menu-bar-external . t) (menu-bar-size 400 . 50) (tab-bar-size 0 . 0) (tool-bar-external . t) (tool-bar-position . top) (tool-bar-size 400 . 82) (internal-border-width . 0)) The window manager is mutter, I suppose? > Indeed, yes. -- https://rrt.sc3d.org --00000000000050009906213924de Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Tue, 3 Sept 2024 at= 16:52, martin rudalics <rudalics@gmx= .at> wrote:
=C2=A0>> Reproduction with Emacs 29.= 3 (also with git master HEAD, see below).
=C2=A0>>
=C2=A0>> Run: emacs -Q
=C2=A0>> C-x 5 2 ; window opens the same size as the initial window =C2=A0>> M-x menu-bar-mode RET ; disable menu-bar-mode

Here with a GTK-3 build on XFCE disabling menu-bar-mode makes both
frames smaller by the menu bar height.=C2=A0 Does this happen on your syste= m?

Yes it does.

=C2=A0>> C-x 52 ; window opens much smaller than initial window
=C2=A0>>
=C2=A0>> With master HEAD (commit 92ea393a16e), the situation is slig= htly different:
=C2=A0>>
=C2=A0>> Run: emacs -Q
=C2=A0>> C-x 52 ; window opens much smaller than initial window

In all these cases after every single step please evaluate

(frame-geometry)

and post the results here.

Sure thing:

Emacs 2= 9:

emacs -Q
(frame-geometry): ((outer-position 1127 . 81) (outer-size 138= 4 . 1504) (external-border-size 28 . 34) (outer-border-width . 0) (title-ba= r-size 0 . 46) (menu-bar-external . t) (menu-bar-size 1328 . 50) (tab-bar-s= ize 0 . 0) (tool-bar-external . t) (tool-bar-position . top) (tool-bar-size= 1328 . 82) (internal-border-width . 0))
C-x 5 2
menu-bar-mode RET
(frame-geom= etry): ((outer-position 1127 . 81) (outer-size 1384 . 1454) (external-borde= r-size 28 . 34) (outer-border-width . 0) (title-bar-size 0 . 46) (menu-bar-= external . t) (menu-bar-size 0 . 0) (tab-bar-size 0 . 0) (tool-bar-external= . t) (tool-bar-position . top) (tool-bar-size 1328 . 82) (internal-border-= width . 0))
C-x 5 2
(frame-= geometry): ((outer-position 28 . 90) (outer-size 456 . 570) (external-borde= r-size 28 . 34) (outer-border-width . 0) (title-bar-size 0 . 46) (menu-bar-= external . t) (menu-bar-size 0 . 0) (tab-bar-size 0 . 0) (tool-bar-external= . t) (tool-bar-position . top) (tool-bar-size 400 . 82) (internal-border-w= idth . 0))

Emacs git m= aster (commit 92ea393a16e):
emacs -Q
(frame-geometry): ((outer-position 28 . 90) (outer-size 1384 . 15= 04) (external-border-size 28 . 34) (outer-border-width . 0) (title-bar-size= 0 . 46) (menu-bar-external . t) (menu-bar-size 1328 . 50) (tab-bar-size 0 = . 0) (tool-bar-external . t) (tool-bar-position . top) (tool-bar-size 1328 = . 82) (internal-border-width . 0))
C-x 5 2
(frame-geometry): ((outer-position 108 . 170) (outer-size 4= 56 . 620) (external-border-size 28 . 34) (outer-border-width . 0) (title-ba= r-size 0 . 46) (menu-bar-external . t) (menu-bar-size 400 . 50) (tab-bar-si= ze 0 . 0) (tool-bar-external . t) (tool-bar-position . top) (tool-bar-size = 400 . 82) (internal-border-width . 0))

The window manager is= mutter, I suppose?

= Indeed, yes.

--=
--00000000000050009906213924de--