From: PierGianLuca <luca@magnaspesmeretrix.org>
To: help-gnu-emacs@gnu.org
Subject: Emacs-desktop insists on having 13-pixel scrollbars at startup
Date: Sat, 20 Apr 2024 14:31:12 +0200 [thread overview]
Message-ID: <62dc1a94-e81c-83b1-3a92-9b784bc6b624@magnaspesmeretrix.org> (raw)
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
next reply other threads:[~2024-04-20 12:31 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-20 12:31 PierGianLuca [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-04-28 19:57 Emacs-desktop insists on having 13-pixel scrollbars at startup Rahguzar
2024-04-28 20:13 ` PierGianLuca
2024-04-29 6:55 ` Eli Zaretskii
2024-04-29 7:16 ` PierGianLuca
2024-04-29 8:20 ` Eli Zaretskii
2024-04-29 8:11 ` Rahguzar
2024-04-29 8:16 ` PierGianLuca
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=62dc1a94-e81c-83b1-3a92-9b784bc6b624@magnaspesmeretrix.org \
--to=luca@magnaspesmeretrix.org \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.