From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Roshan Shariff Newsgroups: gmane.emacs.bugs Subject: bug#67654: 29.1; Hiding menu bar makes new frames very small Date: Wed, 06 Dec 2023 00:52:08 -0700 Message-ID: <87y1e73h07.fsf@acheron.home.roshan.ca> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14558"; mail-complaints-to="usenet@ciao.gmane.io" To: 67654@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Dec 06 08:57:07 2023 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 1rAmmG-0003St-Az for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 06 Dec 2023 08:57:04 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rAmm4-0006QF-Vt; Wed, 06 Dec 2023 02:56:53 -0500 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 1rAmm2-0006Pr-VB for bug-gnu-emacs@gnu.org; Wed, 06 Dec 2023 02:56:50 -0500 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 1rAmm2-00019q-Mr for bug-gnu-emacs@gnu.org; Wed, 06 Dec 2023 02:56:50 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rAmmE-0008TS-90 for bug-gnu-emacs@gnu.org; Wed, 06 Dec 2023 02:57:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Roshan Shariff Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 06 Dec 2023 07:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 67654 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.170184940032542 (code B ref -1); Wed, 06 Dec 2023 07:57:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 6 Dec 2023 07:56:40 +0000 Original-Received: from localhost ([127.0.0.1]:38766 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rAmlr-0008Sn-Vg for submit@debbugs.gnu.org; Wed, 06 Dec 2023 02:56:40 -0500 Original-Received: from lists.gnu.org ([2001:470:142::17]:51184) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rAmhu-0008MN-GX for submit@debbugs.gnu.org; Wed, 06 Dec 2023 02:52:37 -0500 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 1rAmhc-0005Tb-CK for bug-gnu-emacs@gnu.org; Wed, 06 Dec 2023 02:52:16 -0500 Original-Received: from mail-pl1-x636.google.com ([2607:f8b0:4864:20::636]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rAmha-0000Sp-2o for bug-gnu-emacs@gnu.org; Wed, 06 Dec 2023 02:52:15 -0500 Original-Received: by mail-pl1-x636.google.com with SMTP id d9443c01a7336-1d0aaa979f0so21060865ad.0 for ; Tue, 05 Dec 2023 23:52:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701849131; x=1702453931; darn=gnu.org; h=mime-version:message-id:date:subject:to:from:from:to:cc:subject :date:message-id:reply-to; bh=8vm66WPFYVzv812Gu6pnfHzH6QyA6InOXJwx2YY3DUw=; b=SOVIVk5IyPSDt/ipGEwcYUMJus1cKxqFXiC/yRhjJ9xdECl7Hqd+cCzYhWzlE5EFpg /ZFaSvCCKvJjIeKwjz4jEzpQgtpd06SWKKG3xo+VOpJj3373nFATsj6odXwa0ZFoYv4M jZ/3y5PNGdyYA/UZpLaZPfABUg3HvP/kK0K6IIy8rAWVuj4UMixcdtu9vvxUqrsonSUm YUmHUU+G5iOzMilz/ksXh3e14TpJt68JQ2WzNTed5u52TWQ5EvrIfmupyooYo9wcAx9T VoqmgG8JwLwolXbdvH8grv5SsiyDKRchrTRT6qOxyz+KvKFAtq41FT58KBSGL3WFTmaO hD4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701849131; x=1702453931; h=mime-version:message-id:date:subject:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=8vm66WPFYVzv812Gu6pnfHzH6QyA6InOXJwx2YY3DUw=; b=OsK1OvosgWekZ8hC+Qzldvf9m38/kXflmrIlz+DG2I+U/DruapHUnb4uxCZRyQII/r AFdXzEkqabvv1Kxc5h3QOyP6+BZ7uV6c0LvIp/Qox2F8+7xHH5shYGesC/L/8KXau9YO tM9No0kVUecb+3uCKfgmZCWBS41ugZDupTEobAqepqZT3Y0VTE/5K+ibDRXz7KdYFtCn 7unE19h5GRp3Ahqwe4ag+LDLrjE+fWrL0sl964BPnCnpHm0JJGC4TE4byEc5UnxCMrJ1 NgJq63HE+AoVeIQOxc/KTaaSXpk00NPYhhysA4b5j1z+UISsKw4p8cHvpa4jnuUJCTQA AEXg== X-Gm-Message-State: AOJu0YyGb+n4vhQxRvQyUNbzNRBSgKG28vJm8KgJzBD+8oAM53P2xBJw rPUWwCrWqIxprMDYs7Qa0mcZVnZGbHk= X-Google-Smtp-Source: AGHT+IHRnakoxbEHL1DjwEklrpc311mqgkIM0EAVD/Zxgr+i07razscgjodZyvr0+iTRegxBDvSmoQ== X-Received: by 2002:a17:902:ef89:b0:1d0:6ffd:ae0c with SMTP id iz9-20020a170902ef8900b001d06ffdae0cmr202962plb.115.1701849131009; Tue, 05 Dec 2023 23:52:11 -0800 (PST) Original-Received: from localhost (S01069050ca65e863.ed.shawcable.net. [174.3.244.184]) by smtp.gmail.com with ESMTPSA id z14-20020a1709027e8e00b001cc1dff5b86sm10648289pla.244.2023.12.05.23.52.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Dec 2023 23:52:10 -0800 (PST) Received-SPF: pass client-ip=2607:f8b0:4864:20::636; envelope-from=roshan.shariff@gmail.com; helo=mail-pl1-x636.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Wed, 06 Dec 2023 02:56:38 -0500 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:275583 Archived-At: This bug appears on Linux with the Xorg and Xwayland servers, and I've tested it on Gnome 45. To reproduce $ emacs -Q --eval='(menu-bar-mode -1)' Invoke make-frame-command (C-x 5 2) The initial frame is correctly sized, but any new frames are very small. The frame-parameter function reports their size to be 22x10. Evaluating (set-frame-size nil 80 40) in the newly created frame does resize it correctly, and adding that code to after-make-frame-functions works around this bug. Re-enabling the menu bar also makes new frames correctly sized. The same problem happens in daemon mode. If the menu bar is disabled with emacsclient -e '(menu-bar-mode -1)' immediately after starting the daemon, the first frame created via emacsclient -c is correctly sized but all subsequent frames are tiny. I was able to find similar reports on the Emacs StackExchange site: https://emacs.stackexchange.com/questions/77667/emacs-starts-in-extremely-tiny-window In GNU Emacs 29.1 (build 1, x86_64-redhat-linux-gnu, GTK+ Version 3.24.38, cairo version 1.17.8) of 2023-09-24 built on e1d0f5fdfea948b9bb25e212c9c623e4 Windowing system distributor 'The X.Org Foundation', version 11.0.12302002 System Description: Fedora Linux 39 (Workstation Edition) Configured using: 'configure --build=x86_64-redhat-linux-gnu --host=x86_64-redhat-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --runstatedir=/run --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-dbus --with-gif --with-jpeg --with-png --with-rsvg --with-tiff --with-xpm --with-x-toolkit=gtk3 --with-gpm=no --with-xwidgets --with-modules --with-harfbuzz --with-cairo --with-json --with-native-compilation=aot --with-tree-sitter --with-sqlite3 --with-webp --with-xinput2 build_alias=x86_64-redhat-linux-gnu host_alias=x86_64-redhat-linux-gnu CC=gcc 'CFLAGS=-DMAIL_USE_LOCKF -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' LDFLAGS=-Wl,-z,relro PKG_CONFIG_PATH=:/usr/lib64/pkgconfig:/usr/share/pkgconfig CXX=g++ 'CXXFLAGS=-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer '' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG JSON LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER WEBP X11 XDBE XIM XINPUT2 XPM XWIDGETS GTK3 ZLIB Important settings: value of $LANG: en_CA.UTF-8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: server-mode: t tooltip-mode: t global-eldoc-mode: t eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t line-number-mode: t indent-tabs-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message mailcap yank-media puny dired dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg rfc6068 epg-config gnus-util text-property-search time-date mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils pp cl-loaddefs comp comp-cstr warnings icons subr-x rx cl-seq cl-macs gv cl-extra help-mode bytecomp byte-compile cl-lib server rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic indonesian philippine cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads xwidget-internal dbusbind inotify dynamic-setting system-font-setting font-render-setting cairo move-toolbar gtk x-toolkit xinput2 x multi-tty make-network-process native-compile emacs) Memory information: ((conses 16 79320 11837) (symbols 48 7249 0) (strings 32 19886 1256) (string-bytes 1 606876) (vectors 16 16445) (vector-slots 8 338535 20511) (floats 8 50 37) (intervals 56 331 0) (buffers 984 12))