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: Sun, 8 Sep 2024 12:38:16 +0100 Message-ID: References: <7be33291-1828-41a6-bd56-759db2f533ee@gmx.at> <44e0648e-b374-4816-8f3b-6948af471ab1@gmx.at> Reply-To: Reuben Thomas Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000003eabd906219a1423" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37114"; 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 Sun Sep 08 13:40:20 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 1snGHD-0009Rf-Hb for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 08 Sep 2024 13:40:19 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1snGH3-0008Bg-GY; Sun, 08 Sep 2024 07:40:09 -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 1snGGw-00087m-ES for bug-gnu-emacs@gnu.org; Sun, 08 Sep 2024 07:40: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 1snGGu-0007mc-I9 for bug-gnu-emacs@gnu.org; Sun, 08 Sep 2024 07:40: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=S1zoTa4l9odw62lJWdcWZQKBhzntLlF9iwiyOda5j1o=; b=hzhR/NDtmmUaNI1eLieKMLyQmM7t78ebL5SRgu9yax0UA47D9iT3OEgNLBaI+jPeyIms6UdPMh+hqYi5HodNYTuIZ/+fMW8CwF7ikzDX0Icq/404qxM1rv2dKjfVjjxZBTQPNkVFV96PDww+YMBp7tPh5Qvv+cR8LiQQwijUZn3l516jthVBDW44fO65q2pJyg1kXOy3elV2gTkEBZFVy73o3W2BtuqQOuiGUYvBbIoXIexsAEVfzydAThtB+GKxyFr65amGKDbwYR6/X1FczegbsPkNQasOPaAse20eR2WdQ2rnADkRiTDzhosnjeeS/wajeb9Iei2G1DVC5BZQSw==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1snGGw-0007N6-JK for bug-gnu-emacs@gnu.org; Sun, 08 Sep 2024 07:40:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Reuben Thomas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 08 Sep 2024 11:40:02 +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.172579557828280 (code B ref 72986); Sun, 08 Sep 2024 11:40:02 +0000 Original-Received: (at 72986) by debbugs.gnu.org; 8 Sep 2024 11:39:38 +0000 Original-Received: from localhost ([127.0.0.1]:58081 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1snGGY-0007M4-71 for submit@debbugs.gnu.org; Sun, 08 Sep 2024 07:39:38 -0400 Original-Received: from mail-yw1-f178.google.com ([209.85.128.178]:56445) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1snGGW-0007Lq-NN for 72986@debbugs.gnu.org; Sun, 08 Sep 2024 07:39:37 -0400 Original-Received: by mail-yw1-f178.google.com with SMTP id 00721157ae682-6d6e2b2fbc4so33265357b3.0 for <72986@debbugs.gnu.org>; Sun, 08 Sep 2024 04:39:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sc3d.org; s=google; t=1725795509; x=1726400309; 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=S1zoTa4l9odw62lJWdcWZQKBhzntLlF9iwiyOda5j1o=; b=3K0PbeLxq1x5p9gE2QzUYijqZDMDyy2Htjets8AWJDOOS0WK/Cu2vELH+KNb2GU+4i 2dyjmBzwhk00Zo5wTqRocHJ0IzHDx24KTjD0cZ23VXVXLGanpqBXb0xiGgwrmbiz6esF JRHMPL2+hzdyRNopIhJ2kSu+tncGE5iTpuoSM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725795509; x=1726400309; 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=S1zoTa4l9odw62lJWdcWZQKBhzntLlF9iwiyOda5j1o=; b=xD0QHa1cQR9qwiDuZG5ntJYOfXoEq7esNkQojqebGMMk8KBcfY2rObWuYUIl4lqm64 o7WDEj0zv4if/LKooKhvkVopAdK5ZIVoXJzyCdSZUMXJ2mSaWqGeiPOFhE6iUqi0eHWO 8YK58tPy9Olwf0ydIKkCRMURlGTrVIPRKca5RE+ktj9XYbgcEeeL/edm2YHsjTlEfGRI K9nqx6P6Y4x3G9SS6HHnGsNXA3J/st4VxOORuvzAcQ8ClrMO4k9dAUCEARgSAqVe9ghN fJnFM+G8ZICF5WpHnO39XSe/dsqe3rEGNbGSuT5EKUaqQqu7ftrZx2iX/6G/cbJ40Ipl wr6g== X-Forwarded-Encrypted: i=1; AJvYcCV3oNYhL8rHbkR7WOS5p+KwQbOByJu8Mdkn5+Pz2epDky6Qx6VSiba1T5GusBQ8Zum361Cjrg==@debbugs.gnu.org X-Gm-Message-State: AOJu0Ywh1AoF3kVhToNbam4fXqmkK+3LzPkmEbw9neV2PBPVhzHMAA5v DXq3BKs8H7vBSHJfd1jd34Ekb7dQJOTrfEMqnu1Y1gSRpzlMJeUutpX38xI8VAy2d/2ft/B9l91 AoEITNAT9O7QbA1jE3586Jays2agnTwgPMgn5Tg== X-Google-Smtp-Source: AGHT+IEuhk1LxIbqrUqiRBoW6axXI3tPWW9Z8AuZ3csIgtBw2+vy/bxNuNApVvN4A7xeFP5D77wXSlT02H02yiTgqtk= X-Received: by 2002:a05:690c:6c88:b0:6b0:f122:c3c4 with SMTP id 00721157ae682-6db4527624dmr98458007b3.39.1725795508586; Sun, 08 Sep 2024 04:38:28 -0700 (PDT) In-Reply-To: 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:291448 Archived-At: --0000000000003eabd906219a1423 Content-Type: text/plain; charset="UTF-8" On Sun, 8 Sept 2024 at 09:42, martin rudalics wrote: > >> -#if defined (USE_X_TOOLKIT) || defined (USE_GTK) > >> +#if defined (USE_X_TOOLKIT) && !defined (USE_GTK) > >> > > > > OK, so I applied this patch and ran `emacs -Q`, then did C-x 5 2 and got > > the usual small window and error: > > > > (emacs:3159980): Gtk-CRITICAL **: 13:05:49.056: > > gtk_distribute_natural_allocation: assertion 'extra_space >= 0' failed > > Do you get an assertion failure already before the C-x 5 2? > No. Where could we go from here? > (I comment below where I think I may have useful input.) after requesting the larger size. For this purpose we would have to > find out whether 400x340 is some built-in size used by the WM or GTK > or something Emacs itself has used before. > Since this size crops up with emacs -Q, it doesn't seem to be related to something Emacs has used before. I did also grep through my ~/.emacs.d directory, but I couldn't find anything relevant there. (4) Look for other causes. Could scaling be involved? My GNOME desktop is scaled by 200%, so it could be. > (5) Finally, the most important: Can other users observe the same or > similar behavior as Reuben? > Several bugs were already reported of similar behaviour, no? Or maybe you meant something more specific. -- https://rrt.sc3d.org --0000000000003eabd906219a1423 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Sun, 8 Sept 2024 at 09:42, martin rudalics <rudalics@gmx.at> wrote:
=C2=A0>> -#if defined (USE_X_TOOLKIT= ) || defined (USE_GTK)
=C2=A0>> +#if defined (USE_X_TOOLKIT) && !defined (USE_GTK) =C2=A0>>
=C2=A0>
=C2=A0> OK, so I applied this patch and ran `emacs -Q`, then did C-x 5 2= and got
=C2=A0> the usual small window and error:
=C2=A0>
=C2=A0> (emacs:3159980): Gtk-CRITICAL **: 13:05:49.056:
=C2=A0> gtk_distribute_natural_allocation: assertion 'extra_space &g= t;=3D 0' failed

Do you get an assertion failure already before the C-x 5 2?

No.

Where could we go from here?

(I comment below where I think I may have useful input.)
=
after requesting the larger size.=C2=A0 For this purpose we would have to find out whether 400x340 is some built-in size used by the WM or GTK
or something Emacs itself has used before.

<= div>
Since this size crops up with emacs -Q, it doesn'= ;t seem to be related to something Emacs has used before. I did also grep t= hrough my ~/.emacs.d directory, but I couldn't find anything relevant t= here.

(4) Look for other causes.=C2=A0 Could scaling be involved?

My GNOME desktop is scaled by 200%, so = it could be.
=C2=A0
(5) Finally, the most important: Can other users observe the same or
similar behavior as Reuben?

Several bugs were already reported of similar behaviour,= no? Or maybe you meant something more specific.

--
--0000000000003eabd906219a1423--