]> git.eshelyaron.com Git - emacs.git/commit
* lisp/tab-bar.el: Ignore daemon's initial frame (bug#78896).
authorJuri Linkov <juri@linkov.net>
Fri, 27 Jun 2025 17:41:05 +0000 (20:41 +0300)
committerEshel Yaron <me@eshelyaron.com>
Wed, 23 Jul 2025 20:06:25 +0000 (22:06 +0200)
commitad179bac91323e9118ef5ad7adac87bb9867b5d9
treed936c1bedd489ceed6f4c77f5add6609e742314c
parent180b681b12d65808d921246fd49fe23a1b8dbc0e
* lisp/tab-bar.el: Ignore daemon's initial frame (bug#78896).

(tab-bar--update-tab-bar-lines): Don't set the frame parameter
'tab-bar-lines' in daemon's initial frame because it messes up the
frames when 'format-mode-line' called from 'tab-bar-format-global'
on daemon's initial frame forces focus switch to daemon's initial
frame.  Also don't set 'default-frame-alist' in daemon mode because
'frame-notice-user-settings' copies the frame parameter 'tab-bar-lines'
from 'default-frame-alist' to daemon's initial frame.  Here updating
'default-frame-alist' is not much needed anyway since the frame
parameter 'tab-bar-lines' for new frames is set in 'make_terminal_frame'
and 'x-create-frame'.  'default-frame-alist' might be need only
to handle non-default 'tab-bar-show', but this can be handled by
'toggle-frame-tab-bar' called from 'server-after-make-frame-hook'.
(toggle-frame-tab-bar): Document a useful case of calling it
from 'server-after-make-frame-hook'.

(cherry picked from commit cd8319677d8869d60fefca6d88cf994726058e9e)
lisp/tab-bar.el