From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: PierGianLuca Newsgroups: gmane.emacs.help Subject: Emacs-desktop insists on having 13-pixel scrollbars at startup Date: Sat, 20 Apr 2024 14:31:12 +0200 Message-ID: <62dc1a94-e81c-83b1-3a92-9b784bc6b624@magnaspesmeretrix.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24766"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat Apr 20 14:31:56 2024 Return-path: Envelope-to: geh-help-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 1ry9sp-0006D6-Mx for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 20 Apr 2024 14:31:56 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ry9sJ-0004NH-Kp; Sat, 20 Apr 2024 08:31:23 -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 1ry9sH-0004Mn-Dq for help-gnu-emacs@gnu.org; Sat, 20 Apr 2024 08:31:21 -0400 Original-Received: from manu28.manufrog.com ([138.128.182.226]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ry9sF-0002G1-9k for help-gnu-emacs@gnu.org; Sat, 20 Apr 2024 08:31:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=magnaspesmeretrix.org; s=default; h=Content-Transfer-Encoding:Content-Type: Subject:From:To:MIME-Version:Date:Message-ID:Sender:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=V3J2h30HyEpi/rfMHf+IAmh9+Wu343cjP72z61eLobE=; b=QXLOHToU5hfA0D2lCJL3Uji3ZO 6gALYkVrWI5RoVHYm/7gV9Wfp1j8KC42fL/EtiCJbQ3hWCtdAKHRRbWbjYVt6B09HXa9ZWx+DpQpo jtFzghP6w5EcZxu5hAEBNmzfi; Original-Received: from [51.174.11.164] (port=55658 helo=[192.168.10.171]) by manu28.manufrog.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96.2) (envelope-from ) id 1ry9sG-00HH1m-1N for help-gnu-emacs@gnu.org; Sat, 20 Apr 2024 14:31:17 +0200 Content-Language: en-GB, en-US X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - manu28.manufrog.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - magnaspesmeretrix.org X-Get-Message-Sender-Via: manu28.manufrog.com: authenticated_id: luca@magnaspesmeretrix.org X-Authenticated-Sender: manu28.manufrog.com: luca@magnaspesmeretrix.org Received-SPF: pass client-ip=138.128.182.226; envelope-from=luca@magnaspesmeretrix.org; helo=manu28.manufrog.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:146402 Archived-At: Hi everyone. Setup: – Emacs 29.3 compiled on Ubuntu 20.04 from tarball, with options ./configure --with-native-compilation --with-json --enable-link-time-optimization --with-x-toolkit=gtk --with-xwidgets --without-toolkit-scroll-bars – KDE Plasma desktop – *No* window rules set for Emacs on KDE desktop – *No* frame-geometry rules given to Emacs at startup in the emacs.desktop and emacsclient.desktop files – early-init.el is empty – default-frame-alist set, via customize, to: '(default-frame-alist '((horizontal-scroll-bars) (width . 87) (height . 80) (left . 1257) (top . 0))) With this setup, Emacs starts with vertical scrollbars that are 13 pixels wide. If I create new frames with C-x 5 2 ('make-frame-command'), they also have 13-pixel-wide scrollbars. I would like to change the scroll-bar width, adding 6 pixels. So I modify: – early-init.el: (setq-default scroll-bar-width 19) (add-to-list 'initial-frame-alist '(scroll-bar-width . 19)) – default-frame-alist set, via customize, to: '(default-frame-alist '((horizontal-scroll-bars) (scroll-bar-width . 19) (width . 87) (height . 80) (left . 1257) (top . 0))) What happens is that when I start Emacs, the *first* frames that appear have 13-pixels scrollbars. But any new frames that I create with 'make-frame-command' do have the requested 19-pixell scrollbars. I discovered that this happens when Emacs-desktop is active. Emacs-desktop remembers the final frame geometry of all opened frames from one session to the next. Except that it always uses 13-pixel scrollbars for the restored frames when starting a new session. Frames created afterwards do have the correct scrollbar width – but they also will be reset to 13 pixels if Emacs is closed and started again. If Emacs-desktop is disabled, Emacs starts with a frame having the required scrollbar width. Is this a bug in Emacs Desktop, or am I missing or misunderstanding how it should work? I'm happy to share any other information you need. Cheers! Luca