summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp')
-rw-r--r--lisp/menu-bar.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/menu-bar.el b/lisp/menu-bar.el
index 891cdfd5d59..7678b1ece66 100644
--- a/lisp/menu-bar.el
+++ b/lisp/menu-bar.el
@@ -2346,7 +2346,8 @@ It must accept a buffer as its only required argument.")
;; Ignore the initial frame if present. It can happen if
;; Emacs was started as a daemon. (bug#53740)
(dolist (frame (frame-list))
- (unless (eq frame frame-initial-frame)
+ (unless (equal (terminal-name (frame-terminal frame))
+ "initial_terminal")
(push frame frames)))
;; Make the menu of buffers proper.
(setq buffers-menu