Commit 1fe0333f authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(command-line): If initial X frame has a menu bar, mark menu-bar-mode as on.

parent c7bcb20d
......@@ -313,6 +313,10 @@ specified by the LC_ALL, LC_CTYPE and LANG environment variables.")
(if (fboundp 'frame-initialize)
;; If frame was created with a menu bar, set menu-bar-mode on.
(if (and (eq window-system 'x)
(> (cdr (assq 'menu-bar-lines (frame-parameters))) 0))
(menu-bar-mode t))
(run-hooks 'before-init-hook)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment