From 3488c8281651cd1870eecc49e05ed8d1ab258417 Mon Sep 17 00:00:00 2001 From: Eivind Fonn Date: Tue, 15 Nov 2016 22:12:12 +0100 Subject: [PATCH] =?UTF-8?q?Don=E2=80=99t=20toggle=20maximized=20if=20alrea?= =?UTF-8?q?dy=20maximized?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core-spacemacs.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/core-spacemacs.el b/core/core-spacemacs.el index c2251d9a4326..dfd3317a0978 100644 --- a/core/core-spacemacs.el +++ b/core/core-spacemacs.el @@ -81,7 +81,8 @@ the final step of executing code in `emacs-startup-hook'.") (require 'core-configuration-layer) (dotspacemacs|call-func dotspacemacs/init "Calling dotfile init...") (when dotspacemacs-maximized-at-startup - (toggle-frame-maximized) + (unless (frame-parameter nil 'fullscreen) + (toggle-frame-maximized)) (add-to-list 'default-frame-alist '(fullscreen . maximized))) (dotspacemacs|call-func dotspacemacs/user-init "Calling dotfile user init...") (setq dotspacemacs-editing-style (dotspacemacs//read-editing-style-config