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: Sat, 5 Oct 2024 21:02:24 +0100 Message-ID: References: <4af02761-273f-41dd-b257-37c37ded0fb4@gmx.at> <9bbb10e9-208f-4d03-87f1-6e63ee293ed5@gmx.at> <4666bf6d-6259-4f72-a65d-56e2c47f98c0@gmx.at> <54072426-c373-420c-8343-29035fba25a6@gmx.at> <3d0a1e9a-5efc-4491-ab85-e3e58cb0f068@gmx.at> <0e78c0db-105c-4a60-acd4-7267e225259b@gmx.at> Reply-To: Reuben Thomas Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000d6cb370623c04494" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16196"; 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 Sat Oct 05 22:04:08 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 1sxB0Z-00042O-Uw for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 05 Oct 2024 22:04:08 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sxB0S-0005rA-Ae; Sat, 05 Oct 2024 16:04:00 -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 1sxB0Q-0005ps-Mm for bug-gnu-emacs@gnu.org; Sat, 05 Oct 2024 16:03:58 -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 1sxB0P-0001Gk-EU for bug-gnu-emacs@gnu.org; Sat, 05 Oct 2024 16:03:57 -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=zcv4z044qpUf9DwUNGOFvOjGNJByH30pGaUbK9cgWvo=; b=TTANJ4LKhlbJJZ0BFXaW/xqaeVwafCT4GYaVXMcqp3q24gLFOY4RP46d+dmy5kGRjzx860m/f/LJsm2FFH42VHQ0M+3RHeJrIMkzFyaf9rh1e7XCcqDOBZzFYn5CGLkz0+g3ZsAl8Dl1caOJJvyw3RSrummG0GkdEZbrrTEkKigqIV4q3+HH395RWefGcmVdF39AF3jLLnjJZEtZ8nPYEblaO6aPTLG9wCSAheC88UhhjeIzrt2JrnkxHWIjI8wr/yeHnUbPvNrWWLBLzslfo1UGYqiOAoY1JO1K++tK7VVncsKI/ZBg1mRESLWnz30ZT2OmnyQUqpx8JlQLkOE7fg==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sxB0U-00042Z-B3 for bug-gnu-emacs@gnu.org; Sat, 05 Oct 2024 16:04: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: Sat, 05 Oct 2024 20:04: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.172815863215511 (code B ref 72986); Sat, 05 Oct 2024 20:04:02 +0000 Original-Received: (at 72986) by debbugs.gnu.org; 5 Oct 2024 20:03:52 +0000 Original-Received: from localhost ([127.0.0.1]:39645 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sxB0K-000427-0k for submit@debbugs.gnu.org; Sat, 05 Oct 2024 16:03:52 -0400 Original-Received: from mail-yw1-f178.google.com ([209.85.128.178]:54707) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sxB0E-00041l-FY for 72986@debbugs.gnu.org; Sat, 05 Oct 2024 16:03:50 -0400 Original-Received: by mail-yw1-f178.google.com with SMTP id 00721157ae682-6e2e427b07dso2431277b3.1 for <72986@debbugs.gnu.org>; Sat, 05 Oct 2024 13:03:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sc3d.org; s=google; t=1728158556; x=1728763356; 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=zcv4z044qpUf9DwUNGOFvOjGNJByH30pGaUbK9cgWvo=; b=s50IgmaCMh07DlVSfKIu2yYhw/Zh+hOepRAkMRthpHbERRD/40rochTqSzemAZpjN8 oiW9uy838oWC/SfFMgwxGfAg0Z9hZcJYHEm7aifAY6k+vRtKehZeU0zSBg8CazoSZijm hH05ZHngzEJDukVfw//Sq0RZVHajAfgTJnmu8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728158556; x=1728763356; 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=zcv4z044qpUf9DwUNGOFvOjGNJByH30pGaUbK9cgWvo=; b=mSiOMSjkY/Kztg6GBZVSrWN3u+MfxlAn/kWyZ9fSC9Q2VffRU7a1/qAn35ouZ151L9 zfRbm3GYhcMNv+cAVONPJ8cX2TZCZOW98kZvGi9oFXeNUIPFxPtNvR8SXdqVFg3WOPAC W926E71lRWVNKQNu9+BiT6hpztR3GUX8pFUHkhVjcCN89lqBfX1yCxjkyoUDj40ZW1ov QweSuHWtba40qyW1F5G2gk3agaT4lyRifZUDM4X5AQlw9XqasuTB+HddkpHtCzvpuhIR Kb/Wl3zAQ1xVvdsnIvXSoBeBL/FYlbsf7mI2BV4UtnlAW5roli39ty5c2ElRLC0m9kJX vllg== X-Forwarded-Encrypted: i=1; AJvYcCVYb0UIDq+t7BfM5CNXkKCEXjtyVwZ9GrHYrohaWb8A5KBVbcP/a/YkVTnud/V7f9hHhNg8LQ==@debbugs.gnu.org X-Gm-Message-State: AOJu0Yxf1MO9fLMAeJe550OEb3CVZ1IvMQu4QYxt8DPYwjkT2uLoqFMy CGl8zI0K8rtfZR9dqUIW/0ywulyYRfFgGgQYCCPE35MNzF/NdhOJ50H3Ew4s15WSlgZaTDI2Vil a1mppldEpA8js5cINrlcAubr+e4j5+AEq6YAJZA== X-Google-Smtp-Source: AGHT+IFde0HnTrzIy5prnazTHfWc4JG6PDjmWTiYUyV0xHStjc5K8zcbTiYNW6PxtTs8T8/4csaaMQjcpiouSOMX+ec= X-Received: by 2002:a05:690c:7009:b0:6e0:12e:e470 with SMTP id 00721157ae682-6e2c7238be0mr59345857b3.25.1728158555876; Sat, 05 Oct 2024 13:02:35 -0700 (PDT) In-Reply-To: <0e78c0db-105c-4a60-acd4-7267e225259b@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:293052 Archived-At: --000000000000d6cb370623c04494 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, 4 Oct 2024 at 18:21, martin rudalics wrote: > > Looks correct. Unlike some previous situations, where there were > oddities > > (e.g. the frame was wider than the Emacs window, or the minibuf was cu= t > off > > at the bottom), the frame seems to fit the contents perfectly. > > Somewhere these 12 pixels must show up. What does > > (window-pixel-height) > > in the *scratch* window evaluate to? > (This is for first frame without menu bar.) (window-pixel-height) =E2=87=92 1257 I can only suspect that this comes from a request to move the frame that > doesn't show up in the history. Now the only location where this might > happen is in xterm.c around like 29259 here: > > if (original_left !=3D x || original_top !=3D y) > XMoveWindow (FRAME_X_DISPLAY (f), FRAME_OUTER_WINDOW (f), > original_left, original_top); > > Please put a breakpoint on that line and tell me whether it gets hit. > The probability is less than 1% but who knows ... > Nope, sorry, I put a breakpoint and it was not hit. Indeed, the whole block starting at 29233 was not hit (I put a breakpoint at the call to block_input on line 29245). All line numbers above with your most recent patch gtktutil-frame.diff applied to commit 4c7a6dc1a0c --=20 https://rrt.sc3d.org --000000000000d6cb370623c04494 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Fri, 4 Oct 2024 at 18:21, martin rudalics <rudalics@gmx.at> wrote:
=C2=A0> Looks correct. Unlike some prev= ious situations, where there were oddities
=C2=A0> (e.g. the frame was wider than the Emacs window, or the minibuf = was cut off
=C2=A0> at the bottom), the frame seems to fit the contents perfectly.
Somewhere these 12 pixels must show up.=C2=A0 What does

(window-pixel-height)

in the *scratch* window evaluate to?

(This is for first frame without menu bar.)

(window-pixel-height) =E2=87=92 12= 57

I can only suspect that this comes from a request to move the frame that doesn't show up in the history.=C2=A0 Now the only location where this = might
happen is in xterm.c around like 29259 here:

=C2=A0 =C2=A0 =C2=A0 =C2=A0 if (original_left !=3D x || original_top !=3D y= )
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 XMoveWindow (FRAME_X_DISPLAY (f), FRAME_= OUTER_WINDOW (f),
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0original_left, original_top);

Please put a breakpoint on that line and tell me whether it gets hit.
The probability is less than 1% but who knows ...

Nope, sorry, I put a breakpoint and = it was not hit. Indeed, the whole block starting at 29233 was not hit (I pu= t a breakpoint at the call to block_input on line 29245).

All line numbers above with your most= recent patch gtktutil-frame.diff applied to commit 4c7a6dc1a0c
=
--
--000000000000d6cb370623c04494--